mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2021-05-13 03:08:02 +03:00
Added some documentation.
This commit is contained in:
@@ -44,6 +44,11 @@ class TeleBot:
|
||||
self.commands = []
|
||||
|
||||
def get_update(self):
|
||||
"""
|
||||
Retrieves any updates from the Telegram API.
|
||||
Registered listeners and applicable message handlers will be notified when a new message arrives.
|
||||
:raises ApiException when a call has failed.
|
||||
"""
|
||||
updates = apihelper.get_updates(self.token, offset=(self.last_update_id + 1))
|
||||
new_messages = []
|
||||
for update in updates:
|
||||
|
||||
Reference in New Issue
Block a user