Pytgbot

Latest version: v5.7

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

Scan your dependencies

Page 3 of 9

4.9.1

- Fixed `pytgbot.bot` not being part of the pip release.

4.9

- Make exceptions inherit from Exception and not BaseException.
- Added Updates from the Bot API 4.9, including:
- Added StickerSet.thumb.
- Added Dice
- Shifting around of argument order in Message.
- Also adds Message.via_bot, Message.dice.
- Added InlineQueryResultGif
.thumb_mime_type.
- Added InlineQueryResultMpeg4Gif.thumb_mime_type.
- Added Bot.set_sticker_set_thumb(…)
- Added Bot.get_my_commands(…)

4.6.1

- Added `language` to `MessageEntity` for real now.
- Added `poll_answer` to `Update` as well.

4.6

- Added API definitions of v4.6, (January 23, 2020) with the following changelog:
- Supported [Polls 2.0](https://telegram.org/blog/polls-2-0-vmq).
- Added the ability to send non-anonymous, multiple answer, and quiz-style polls: added the parameters `is_anonymous`, `type`, `allows_multiple_answers`, `correct_option_id`, `is_closed` options to the method `sendPoll`.
- Added the object `KeyboardButtonPollType` and the field `request_poll` to the object `KeyboardButton`.
- Added updates about changes of user answers in non-anonymous polls, represented by the object `PollAnswer` and the field `poll_answer` in the `Update` object.
- Added the fields `total_voter_count`, `is_anonymous`, `type`, `allows_multiple_answers`, `correct_option_id` to the `Poll` object.
- Bots can now send polls to private chats.
- Added more information about the bot in response to the `getMe` request: added the fields `can_join_groups`, `can_read_all_group_messages` and `supports_inline_queries` to the User object.
- Added the optional field `language` to the `MessageEntity` object.
- The new stuff:
- New Fields:
- `pytgbot.api_types.receivable.media.MessageEntity`: `language`
- `pytgbot.api_types.receivable.media.Poll`: `total_voter_count`, `is_closed`, `is_anonymous`, `type`, `allows_multiple_answers` and `correct_option_id`
- `pytgbot.api_types.receivable.updates.Update`: `poll_answer`
- `pytgbot.api_types.sendable.reply_markup.KeyboardButton`: `request_poll`
- `pytgbot.api_types.receivable.peer.User`: `can_join_groups`, `can_read_all_group_messages`, `supports_inline_queries`
- `pytgbot.api_types.receivable.peer.Chat`: `slow_mode_delay`
- `pytgbot.api_types.receivable.peer.ChatMember`: `custom_title`
- New Arguments:
- `pytgbot.bot.Bot.get_me`:
- New Classes:
- `pytgbot.api_types.sendable.reply_markup.KeyboardButtonPollType`
- `pytgbot.api_types.receivable.media.PollAnswer`

4.5.2

- Fixed failing to merge the `file_unique_id` field into the media constructors.

4.5.1

This is a re-release of `4.5.0` as I thought it didn't upload correctly

Page 3 of 9

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.