Pytdbot

Latest version: v0.8.8

Safety actively analyzes 685838 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.8.1

- Update TDLib to 1.8.12 (tdlib/td70bee08).
- Added parameter [`clear_draft`](https://github.com/pytdbot/client/blob/33b09b12f1a84902602988b8925bfd47d4b96569/pytdbot/methods/methods.py#L58) to **sendTextMessage** method.
- Added parameter [`load_replied_message`](https://github.com/pytdbot/client/blob/73af240f450793f0b0e800d60aab11d9a7560844/pytdbot/methods/methods.py#L71) to methods.
- Added [`sender_type`](https://github.com/pytdbot/client/blob/73af240f450793f0b0e800d60aab11d9a7560844/pytdbot/types/update/update.py#L190) to **Update** class.
- Added [`leaveChat`](https://github.com/pytdbot/client/blob/73af240f450793f0b0e800d60aab11d9a7560844/pytdbot/types/update/update.py#L534) to **Update** class.
- Added [`getSupergroupId`](https://github.com/pytdbot/client/blob/73af240f450793f0b0e800d60aab11d9a7560844/pytdbot/types/update/update.py#L480) to **Update** class.
- Added [`local_file_id`](https://github.com/pytdbot/client/blob/73af240f450793f0b0e800d60aab11d9a7560844/pytdbot/types/update/update.py#L297) to **Update** class.
- Added [`download`](https://github.com/pytdbot/client/blob/73af240f450793f0b0e800d60aab11d9a7560844/pytdbot/types/update/update.py#L586) to **Update** class.
- Rename `Update.file_id` to `remote_file_id`.
- Now [**Pytdbot**](https://github.com/pytdbot/client) will attempt to load chats when database is disabled. First you **must** call any **method** which return "**Chat not found**" error.
- Now [`Update.mention`](https://github.com/pytdbot/client/blob/73af240f450793f0b0e800d60aab11d9a7560844/pytdbot/types/update/update.py#L418) returns full name of the user.
- Minor improvements.

0.8.0

- Update TDLib to 1.8.11 (tdlib/td3d0140b3e)
- Added support for regular users login. Now you can login using a phone number by passing it normaly to [`Client.token`](https://github.com/pytdbot/client/blob/062e3f5b925ed2f32e6fc1e27f5f628ccb8cc390/pytdbot/client.py#L44) as if you login using a bot token.
- Added [`get_retry_after_time`](https://github.com/pytdbot/client/blob/d6630cc465facd4900ba253a865306568c631e4e/pytdbot/client.py#L641) method to [`Client`](https://github.com/pytdbot/client/blob/main/pytdbot/client.py).
- Added parameter [`sleep_threshold`](https://github.com/pytdbot/client/blob/d6630cc465facd4900ba253a865306568c631e4e/pytdbot/client.py#L86) to [`Client`](https://github.com/pytdbot/client/blob/main/pytdbot/client.py). If set, [`Client`](https://github.com/pytdbot/client/blob/main/pytdbot/client.py) will retry the rate limited request by sleeping the required amount of time. `if X < Client.sleep_threshold:`.
- Added [`request_user`](https://github.com/pytdbot/client/blob/7adbe3a6f0c51eb7317b9b214da24273ee7805a3/pytdbot/types/buttons/show_keyboard.py#L122) and [`request_chat`](https://github.com/pytdbot/client/blob/7adbe3a6f0c51eb7317b9b214da24273ee7805a3/pytdbot/types/buttons/show_keyboard.py#L168) to `ShowKeyboardButton`.
- Added [`edit_text`](https://github.com/pytdbot/client/blob/7adbe3a6f0c51eb7317b9b214da24273ee7805a3/pytdbot/types/update/update.py#L1322) to `Update` class.
- Added [`action`](https://github.com/pytdbot/client/blob/d6630cc465facd4900ba253a865306568c631e4e/pytdbot/types/update/update.py#L410) to `Update` class.
- Added [`is_self`](https://github.com/pytdbot/client/blob/d68fb804242f1456eae5f04e0507b2f24acdff4a/pytdbot/types/update/update.py#L327) to `Update` class.
- Added `bold`, `italic`, `underline`, `strikethrough`, `spoiler`, `hyperlink`, `mention`, `code`, `pre`, `pre_code` text format options to [`Client.utils`](https://github.com/pytdbot/client/blob/main/pytdbot/utils/text_format.py).
- Changed the default value for `parse_mode` to `None` in [`methods`](https://github.com/pytdbot/client/blob/main/pytdbot/methods/methods.py).
- Changed the default value for parameter `version` to `2` (`Markdownv2`) in [`escape_markdown`](https://github.com/pytdbot/client/blob/d6630cc465facd4900ba253a865306568c631e4e/pytdbot/utils/escape.py#L28).
- Rename `Response.type_` to `Response.type`.
- Rename `Response` class to `Result`.
- Removed `Client.update_count`.
- Removed parameter `timeout` from all methods in [`Client`](https://github.com/pytdbot/client/blob/main/pytdbot/client.py).
- Docstring hint parameter type and TDLib response type.
- Minor improvements.

0.7.11

- Update TDLib to 1.8.10 (tdlib/tdcf1984844be7ec0c06762d8d617cbb20352ec9a2)
- Rename parameter `data` to `request` in `Client.invoke` method.
- Minor performance improvements.

0.7.10

- Update TDLib to 1.8.9 (tdlib/tda7952f383)

0.7.9

- Update TDLib to 1.8.8 (tdlib/tdbbe37ee594d97f3c7820dd23ebcd9c9b8dac51a0)

0.7.8

- Update TDLib to 1.8.7 (tdlib/tdc1a3fa633fbce67b8b89fee93130498db8adc039)

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.