mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge pull request #960 from CrafterKolyan/patch-1
Add last_update_id parameter for constructor
This commit is contained in:
commit
2bc5c1a500
@ -93,7 +93,7 @@ class TeleBot:
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, token, parse_mode=None, threaded=True, skip_pending=False, num_threads=2,
|
self, token, parse_mode=None, threaded=True, skip_pending=False, num_threads=2,
|
||||||
next_step_backend=None, reply_backend=None, exception_handler=None
|
next_step_backend=None, reply_backend=None, exception_handler=None, last_update_id=0
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
:param token: bot API token
|
:param token: bot API token
|
||||||
@ -107,7 +107,7 @@ class TeleBot:
|
|||||||
self.skip_pending = skip_pending
|
self.skip_pending = skip_pending
|
||||||
|
|
||||||
self.__stop_polling = threading.Event()
|
self.__stop_polling = threading.Event()
|
||||||
self.last_update_id = 0
|
self.last_update_id = last_update_id
|
||||||
self.exc_info = None
|
self.exc_info = None
|
||||||
|
|
||||||
self.next_step_backend = next_step_backend
|
self.next_step_backend = next_step_backend
|
||||||
|
Loading…
x
Reference in New Issue
Block a user