mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2021-05-13 03:08:02 +03:00
Fix document #220
This commit is contained in:
@@ -445,7 +445,6 @@ The TeleBot constructor takes the following optional arguments:
|
|||||||
|
|
||||||
- threaded: True/False (default True). A flag to indicate whether
|
- threaded: True/False (default True). A flag to indicate whether
|
||||||
TeleBot should execute message handlers on it's polling Thread.
|
TeleBot should execute message handlers on it's polling Thread.
|
||||||
- num_threads: integer (default 4). Controls the amount of WorkerThreads created for the internal thread pool that TeleBot uses to execute message handlers. Is not used when threaded is False.
|
|
||||||
|
|
||||||
### The listener mechanism
|
### The listener mechanism
|
||||||
As an alternative to the message handlers, one can also register a function as a listener to TeleBot. Example:
|
As an alternative to the message handlers, one can also register a function as a listener to TeleBot. Example:
|
||||||
|
|||||||
Reference in New Issue
Block a user