Skip to content

Commit f83c3de

Browse files
committed
Fix argument passing for set_chat_member_tag in synchronous and asynchronous handlers
1 parent 955e8d3 commit f83c3de

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

telebot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4632,7 +4632,7 @@ def set_chat_member_tag(
46324632
:return: True on success.
46334633
:rtype: :obj:`bool`
46344634
"""
4635-
return apihelper.set_chat_member_tag(self.token, chat_id, user_id, tag)
4635+
return apihelper.set_chat_member_tag(self.token, chat_id, user_id, tag=tag)
46364636

46374637

46384638
def ban_chat_sender_chat(self, chat_id: Union[int, str], sender_chat_id: Union[int, str]) -> bool:

telebot/async_telebot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6138,7 +6138,7 @@ async def set_chat_member_tag(
61386138
:return: True on success.
61396139
:rtype: :obj:`bool`
61406140
"""
6141-
return await asyncio_helper.set_chat_member_tag(self.token, chat_id, user_id, tag)
6141+
return await asyncio_helper.set_chat_member_tag(self.token, chat_id, user_id, tag=tag)
61426142

61436143

61446144
async def ban_chat_sender_chat(self, chat_id: Union[int, str], sender_chat_id: Union[int, str]) -> bool:

0 commit comments

Comments
 (0)