Skip to content

Commit c91ce60

Browse files
authored
Merge pull request eternnoir#372 from Kylmakalle/master
Async Methods for API v3.1
2 parents cb60a12 + 08d6ab5 commit c91ce60

1 file changed

Lines changed: 38 additions & 2 deletions

File tree

‎telebot/__init__.py‎

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,13 +1215,49 @@ def send_chat_action(self, *args, **kwargs):
12151215
return TeleBot.send_chat_action(self, *args, **kwargs)
12161216

12171217
@util.async()
1218-
def kick_chat_member(self, *args):
1219-
return TeleBot.kick_chat_member(self, *args)
1218+
def kick_chat_member(self, *args, **kwargs):
1219+
return TeleBot.kick_chat_member(self, *args, **kwargs)
12201220

12211221
@util.async()
12221222
def unban_chat_member(self, *args):
12231223
return TeleBot.unban_chat_member(self, *args)
12241224

1225+
@util.async()
1226+
def restrict_chat_member(self, *args, **kwargs):
1227+
return TeleBot.restrict_chat_member(self, *args, **kwargs)
1228+
1229+
@util.async()
1230+
def promote_chat_member(self, *args, **kwargs):
1231+
return TeleBot.promote_chat_member(self, *args, **kwargs)
1232+
1233+
@util.async()
1234+
def export_chat_invite_link(self, *args):
1235+
return TeleBot.export_chat_invite_link(self, *args)
1236+
1237+
@util.async()
1238+
def set_chat_photo(self, *args):
1239+
return TeleBot.set_chat_photo(self, *args)
1240+
1241+
@util.async()
1242+
def delete_chat_photo(self, *args):
1243+
return TeleBot.delete_chat_photo(self, *args)
1244+
1245+
@util.async()
1246+
def set_chat_title(self, *args):
1247+
return TeleBot.set_chat_title(self, *args)
1248+
1249+
@util.async()
1250+
def set_chat_description(self, *args):
1251+
return TeleBot.set_chat_description(self, *args)
1252+
1253+
@util.async()
1254+
def pin_chat_message(self, *args, **kwargs):
1255+
return TeleBot.pin_chat_message(self, *args, **kwargs)
1256+
1257+
@util.async()
1258+
def unpin_chat_message(self, *args):
1259+
return TeleBot.unpin_chat_message(self, *args)
1260+
12251261
@util.async()
12261262
def edit_message_text(self, *args, **kwargs):
12271263
return TeleBot.edit_message_text(self, *args, **kwargs)

0 commit comments

Comments
 (0)