mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Update create_threads to threads. #198
This commit is contained in:
parent
8a4d2000d2
commit
c61b82ace6
@ -443,9 +443,9 @@ for text in splitted_text:
|
|||||||
### Controlling the amount of Threads used by TeleBot
|
### Controlling the amount of Threads used by TeleBot
|
||||||
The TeleBot constructor takes the following optional arguments:
|
The TeleBot constructor takes the following optional arguments:
|
||||||
|
|
||||||
- create_threads: 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 create_threads is False.
|
- 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:
|
||||||
|
Loading…
Reference in New Issue
Block a user