Pytgbot

Latest version: v5.7

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

Scan your dependencies

Page 1 of 9

5.7

- Pulled in the latest changes from bot API 5.7.
- Nicer multiline descriptions for classes.

5.6

- Pulled in the latest changes from bot API 5.6.

5.5.1

- Added compatibility fallback for the renamed `bot.kick_chat_member(…)` and `bot.get_chat_members_count(…)`.
- Still you should now use `bot.ban_chat_member(…)` and `bot.get_chat_member_count(…)` instead.

5.5

Telegram renamed two functions:
- `bot.kick_chat_member(…)` is now `bot.ban_chat_member(…)` and
- `bot.get_chat_members_count(…)` is now `bot.get_chat_member_count(…)` instead.
Those are missing compatibility code to still work on the python side.

5.1

- ⚠️ Moved `ProximityAlertTriggered` from `pytgbot.api_types.receiveable.media.ProximityAlertTriggered` to `pytgbot.api_types.receiveable.services.ProximityAlertTriggered`. It also no longer subclasses `receiveable.media.Media`, but a new `receiveable.services.ServiceMessage`
- there should be a import from the old location making that backwards compatible, but that's not something you should depend on as we will remove it in a newer version.

Random observations
- `id`: This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. Python itself is not affected, but your database might.
- polls can have 45 more letters now

Other changes
- Fixed httpx import error in the async client.
- Fix for `InputMediaWithThumb.thumb` not being optional [R2TG-9V].

5.1.0

Page 1 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.