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

Add max_connections and allowed_updates to set_webhook.

This commit is contained in:
eternnoir
2016-12-06 11:42:15 +08:00
parent 509fae6792
commit b5e27d0fea
2 changed files with 9 additions and 5 deletions

View File

@@ -77,8 +77,8 @@ class TeleBot:
if self.threaded:
self.worker_pool = util.ThreadPool()
def set_webhook(self, url=None, certificate=None):
return apihelper.set_webhook(self.token, url, certificate)
def set_webhook(self, url=None, certificate=None, max_connections=None, allowed_updates=None):
return apihelper.set_webhook(self.token, url, certificate, max_connections, allowed_updates)
def get_webhook_info(self):
result = apihelper.get_webhook_info(self.token)