1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Merge pull request #1890 from iamnalinor/master

Fix "invite link must be non-empty" error
This commit is contained in:
_run 2023-01-28 19:35:02 +04:00 committed by GitHub
commit 268c3a9210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -3224,7 +3224,7 @@ class TeleBot:
:rtype: :class:`telebot.types.ChatInviteLink` :rtype: :class:`telebot.types.ChatInviteLink`
""" """
return types.ChatInviteLink.de_json( return types.ChatInviteLink.de_json(
apihelper.edit_chat_invite_link(self.token, chat_id, name, invite_link, expire_date, member_limit, creates_join_request) apihelper.edit_chat_invite_link(self.token, chat_id, invite_link, name, expire_date, member_limit, creates_join_request)
) )
def revoke_chat_invite_link( def revoke_chat_invite_link(

View File

@ -4084,7 +4084,7 @@ class AsyncTeleBot:
:rtype: :class:`telebot.types.ChatInviteLink` :rtype: :class:`telebot.types.ChatInviteLink`
""" """
return types.ChatInviteLink.de_json( return types.ChatInviteLink.de_json(
await asyncio_helper.edit_chat_invite_link(self.token, chat_id, name, invite_link, expire_date, member_limit, creates_join_request) await asyncio_helper.edit_chat_invite_link(self.token, chat_id, invite_link, name, expire_date, member_limit, creates_join_request)
) )
async def revoke_chat_invite_link( async def revoke_chat_invite_link(