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

Aync Methods for v3.1

This commit is contained in:
Kylmakalle 2017-07-07 00:54:18 +03:00
parent f718c36ea7
commit 08d6ab549d

View File

@ -1215,13 +1215,49 @@ class AsyncTeleBot(TeleBot):
return TeleBot.send_chat_action(self, *args, **kwargs) return TeleBot.send_chat_action(self, *args, **kwargs)
@util.async() @util.async()
def kick_chat_member(self, *args): def kick_chat_member(self, *args, **kwargs):
return TeleBot.kick_chat_member(self, *args) return TeleBot.kick_chat_member(self, *args, **kwargs)
@util.async() @util.async()
def unban_chat_member(self, *args): def unban_chat_member(self, *args):
return TeleBot.unban_chat_member(self, *args) return TeleBot.unban_chat_member(self, *args)
@util.async()
def restrict_chat_member(self, *args, **kwargs):
return TeleBot.restrict_chat_member(self, *args, **kwargs)
@util.async()
def promote_chat_member(self, *args, **kwargs):
return TeleBot.promote_chat_member(self, *args, **kwargs)
@util.async()
def export_chat_invite_link(self, *args):
return TeleBot.export_chat_invite_link(self, *args)
@util.async()
def set_chat_photo(self, *args):
return TeleBot.set_chat_photo(self, *args)
@util.async()
def delete_chat_photo(self, *args):
return TeleBot.delete_chat_photo(self, *args)
@util.async()
def set_chat_title(self, *args):
return TeleBot.set_chat_title(self, *args)
@util.async()
def set_chat_description(self, *args):
return TeleBot.set_chat_description(self, *args)
@util.async()
def pin_chat_message(self, *args, **kwargs):
return TeleBot.pin_chat_message(self, *args, **kwargs)
@util.async()
def unpin_chat_message(self, *args):
return TeleBot.unpin_chat_message(self, *args)
@util.async() @util.async()
def edit_message_text(self, *args, **kwargs): def edit_message_text(self, *args, **kwargs):
return TeleBot.edit_message_text(self, *args, **kwargs) return TeleBot.edit_message_text(self, *args, **kwargs)