Rocketgram

Latest version: v6.0.4

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

Scan your dependencies

Page 2 of 5

4.0.0

Added
- `orjson` support version `3.6.8` and above.
- Adapter classes to be able to explicitly select a json parser.
- The fields `join_to_send_messages` and `join_by_request` to the class `Chat`.
- The `CreateInvoiceLink` request class.
- The field `is_premium` to the class `User`.
- The field `premium_animation` to the class `Sticker`.
- The field `added_to_attachment_menu` to the class `User`.
- The field `secret_token` to the class `SetWebhook`.
- The `secret_token` parameter to `__init__`, `add_bot` and `run` functions in `WebhookExecutor` executor class.
- The `secret_token` parameter to the `run` function in `AioHttpExecutor` executor class.

Changed
- The minimum required version of `aiohttp` is now `3.8.1`.
- The minimum required version of `ujson` is now `5.2.0`.
- Framework is now corresponds to Telegram Bot API 6.1.

Fixed
- The `SendInvoice` request class.

Removed
- Tornado support: `TornadoExecutor` and `TornadoConnector` classes.
- `VoiceChatStarted` class.
- `VoiceChatScheduled` class.
- `VoiceChatParticipantsInvited` class.
- `VoiceChatEnded` class.
- `user_id` field from `User` class.
- `update_type` field from `Update` class.
- `query_id` field from `ShippingQuery` class.
- `send2` method from `Request` and child classes.
- `can_manage_voice_chats` field from `PromoteChatMember` class.
- `query_id` field from `PreCheckoutQuery` class.
- `pool_id` and `poll_type` fields from `Poll` class.
- `entity_type` field from `MessageEntity` class.
- `voice_chat_scheduled`, `voice_chat_started`, `voice_chat_ended`, `voice_chat_participants_invited` and `message_type` fields from `Message` class.
- `query_id` field from `InlineQuery` class.
- `encrypted_passport_element_type` field from `EncryptedPassportElement` class.
- `can_manage_voice_chats` field from `ChatMember` class.
- `chat_id` and `chat_type` fields from `Chat` class.
- `query_id` field from `CallbackQuery` class.
- `voice_chat_scheduled`, `voice_chat_started`, `voice_chat_ended` and `voice_chat_participants_invited` variants from `MessageType` enum class.
- `GetChatMembersCount` class.
- `KickChatMember` class.

3.7.0

Added
- `RocketgramNetworkTimeoutError` exception class.
- `WebAppInfo` class.
- `web_app` field to `KeyboardButton` and `InlineKeyboardButton` classes.
- `web` method to `ReplyKeyboard` and `InlineKeyboard` keyboard classes.
- `WebAppData` class.
- `web_app_data` field to `Message` class.
- `MessageType.web_app_data` message type.
- `MenuButtonCommands`, `MenuButtonDefault` and `MenuButtonWebApp` classes.
- `SetChatMenuButton` and `GetChatAdministrators` request classes.
- `ChatAdministratorRights` class.
- `SetMyDefaultAdministratorRights` and `GetMyDefaultAdministratorRights` request classes.
- `last_synchronization_error_date` field to `WebhookInfo` class.
- `MessageType.voice_chat_scheduled` message type.
- `MessageType.voice_chat_started` message type.
- `MessageType.voice_chat_ended` message type.
- `MessageType.voice_chat_participants_invited` message type.
- `voice_chat_scheduled` field to `Message` class.
- `voice_chat_started` field to `Message` class.
- `voice_chat_ended` field to `Message` class.
- `voice_chat_participants_invited` field to `Message` class.
- `can_manage_voice_chats` field to `ChatMember` class.
- `can_manage_voice_chats` field to `PromoteChatMember` class.
- `AnswerWebAppQuery` request class.
- `SentWebAppMessage` class.

Changed
- Framework is now corresponds to Telegram Bot API 6.0.

Fixed
- Avoid throwing unnecessary `RocketgramNetworkError` exceptions in poll mode.
- Replaced deprecated `Task.all_tasks` call to `asyncio.all_tasks` call.
- Typing in middlewares.

Deprecated
- `TornadoConnector` is deprecated and will be removed in version 4.
- `TornadoExecutor` is deprecated and will be removed in version 4.
- `VoiceChatStarted` is deprecated and will be removed in version 4.
- `VoiceChatEnded` is deprecated and will be removed in version 4.
- `VoiceChatParticipantsInvited` is deprecated and will be removed in version 4.
- `VoiceChatScheduled` is deprecated and will be removed in version 4.
- `MessageType.voice_chat_scheduled` is deprecated and will be removed in version 4.
- `MessageType.voice_chat_started` is deprecated and will be removed in version 4.
- `MessageType.voice_chat_ended` is deprecated and will be removed in version 4.
- `MessageType.voice_chat_participants_invited` is deprecated and will be removed in version 4.
- `Message.voice_chat_scheduled` is deprecated and will be removed in version 4.
- `Message.voice_chat_started` is deprecated and will be removed in version 4.
- `Message.voice_chat_ended` is deprecated and will be removed in version 4.
- `Message.voice_chat_participants_invited` is deprecated and will be removed in version 4.
- `ChatMember.can_manage_voice_chats` is deprecated and will be removed in version 4.
- `PromoteChatMember.can_manage_voice_chats` is deprecated and will be removed in version 4.

3.6.0

Added
- `webm_sticker` field to `CreateNewStickerSet` and `AddStickerToSet` request classes.
- `is_video` field to `Sticker` and `StickerSet` classes.

Changed
- Framework is now corresponds to Telegram Bot API 5.7.

Fixed
- Added missed `is_animated` field to `StickerSet` class.

3.5.0

Added
- `ChatType.sender` and `ChatType.unknown` variants.
- `RocketgramRequest403Error` exception class.
- `ChatActionType.choose_sticker`.
- `ApproveChatJoinRequest` request class.
- `DeclineChatJoinRequest` request class.
- `ChatJoinRequest` class.
- `chat_join_request` field to `Update` class.
- `chat_join_request` to `UpdateType`.
- `creates_join_request` field to `ChatInviteLink` class.
- `name` field to `ChatInviteLink` class.
- `pending_join_request_count` field to `ChatInviteLink` class.
- `name` field to `CreateChatInviteLink` and `EditChatInviteLink` request classes.
- `creates_join_request` field to `CreateChatInviteLink` and `EditChatInviteLink` request classes.
- `BanChatSenderChat` request class.
- `UnbanChatSenderChat` request class.
- `has_private_forwards` field to `Chat` class.
- `message_auto_delete_time` field to `Chat` class.
- `has_protected_content` field to `Chat` class.
- `has_protected_content` field to `Message` class.
- `is_automatic_forward` field to `Message` class.
- support of `spoiler` entity type.
- `protect_content` field to several request classes.

Changed
- Framework is now corresponds to Telegram Bot API 5.4.
- Framework is now corresponds to Telegram Bot API 5.5.
- Framework is now corresponds to Telegram Bot API 5.6.

Fixed
- The `command` and `deeplink` filters now only catch messages with `UpdateType.message`.
- The typing for `context` object.
- `chat_type` field parsing for inline queries in case when the query is made from a secret chat.
- Escaping text there are no entities in the message.

3.4.0

Deprecated
- `MessageEntity.entity_type` is deprecated and will be removed in version 4. Use `MessageEntity.type` instead.
- `CallbackQuery.query_id` is deprecated and will be removed in version 4. Use `CallbackQuery.id` instead.
- `Chat.chat_id` is deprecated and will be removed in version 4. Use `Chat.id` instead.
- `Chat.chat_type` is deprecated and will be removed in version 4. Use `Chat.type` instead.
- `EncryptedPassportElement.encrypted_passport_element_type` is deprecated and will be removed in version 4. Use `EncryptedPassportElement.type` instead.
- `InlineQuery.query_id` is deprecated and will be removed in version 4. Use `InlineQuery.id` instead.
- `Message.message_type` is deprecated and will be removed in version 4. Use `Message.type` instead.
- `Poll.pool_id` is deprecated and will be removed in version 4. Use `Poll.id` instead.
- `Poll.poll_type` is deprecated and will be removed in version 4. Use `Poll.type` instead.
- `PreCheckoutQuery.query_id` is deprecated and will be removed in version 4. Use `PreCheckoutQuery.id` instead.
- `ShippingQuery.query_id` is deprecated and will be removed in version 4. Use `ShippingQuery.id` instead.
- `User.user_id` is deprecated and will be removed in version 4. Use `User.id` instead.
- `Update.chat_type` is deprecated and will be removed in version 4. Use `Update.type` instead.

Fixed
- Bug in entity parser tool.
- Reuse of the message entity object when sending messages.
- Typing in `CopyMessage` class.
- Missing default values in `SetMyCommands` class.
- Parser method in `InlineKeyboardMarkup` class.

3.3.1

Fixed
- bug in `Message` object.

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.