Add last_update_id parameter for constructor

This commit is contained in:
Nikolay Korolev 2020-08-25 21:26:28 +03:00 committed by GitHub
parent 47b9c1d3fb
commit c13f9a7f98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ class TeleBot:
"""
def __init__(
self, token, parse_mode=None, threaded=True, skip_pending=False, num_threads=2,
self, token, parse_mode=None, last_update_id=0, threaded=True, skip_pending=False, num_threads=2,
next_step_backend=None, reply_backend=None, exception_handler=None
):
"""
@ -107,7 +107,7 @@ class TeleBot:
self.skip_pending = skip_pending
self.__stop_polling = threading.Event()
self.last_update_id = 0
self.last_update_id = last_update_id
self.exc_info = None
self.next_step_backend = next_step_backend