Added webhooks support with set_webhook and remove_webhook in the TeleBot class

This commit is contained in:
pieter
2015-09-18 20:12:53 +02:00
parent 7a08102fad
commit 941b8ac5d0
3 changed files with 23 additions and 0 deletions

View File

@@ -207,6 +207,11 @@ tb.polling(none_stop=False, interval=0, block=True)
# getMe
user = tb.get_me()
# setWebhook
tb.set_webhook(url="http://example.com", cert=open('mycert.pem'))
# unset webhook
tb.remove_webhook()
# getUpdates
updates = tb.get_updates()
updates = tb.get_updates(1234,100,20) #get_Updates(offset, limit, timeout):