Added some documentation.

This commit is contained in:
pieter
2015-07-02 13:43:49 +02:00
parent 13133ac5c6
commit 86500fc9fa
2 changed files with 27 additions and 9 deletions

View File

@@ -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: