diff --git a/telebot/__init__.py b/telebot/__init__.py index 50ad514..6f6b452 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -3224,7 +3224,7 @@ class TeleBot: :rtype: :class:`telebot.types.ChatInviteLink` """ 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( diff --git a/telebot/async_telebot.py b/telebot/async_telebot.py index 4700bc7..8dbf55a 100644 --- a/telebot/async_telebot.py +++ b/telebot/async_telebot.py @@ -4084,7 +4084,7 @@ class AsyncTeleBot: :rtype: :class:`telebot.types.ChatInviteLink` """ 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(