Utils
Package containing the Telegram utils functions and classes.
TelegramTqdm
This class allows to send through a Telegram Bot a progress bar.
__call__(self, iterable=None, show_last_update=False, desc=None, total=None, leave=True, ncols=None, mininterval=1.0, maxinterval=10.0, miniters=None, ascii=False, disable=False, unit='it', unit_scale=False, dynamic_ncols=False, smoothing=0.3, bar_format=None, initial=0, position=None, postfix=None, unit_divisor=1000, gui=False, **kwargs)
special
Progress bar getting function. It uses the same interface of the tqdm library.
Returns:
Type | Description |
---|---|
|
tqdm object |
Source code in bob_telegram_tools\utils.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|
__init__(self, bot, show_last_update=False)
special
Constructor
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bot |
TelegramBot |
TelegramBot object |
required |
show_last_update |
bool |
True to receive the time of the last update |
False |
Source code in bob_telegram_tools\utils.py
34 35 36 37 38 39 40 41 42 43 44 |
|