Amanobot

Latest version: v2.1.0

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

Scan your dependencies

Page 4 of 11

8.2

- Handling of callback query still unsatisfactory, a transitional release
- Changed async version to `telepot.aio` to avoid collision with `async` keyword
- Added `CallbackQueryCoordinator` and `CallbackQueryAble` to facilitate transparent handling of `CallbackQuery`
- Added `AnswererMixin` to give an `Answerer` instance
- Added `Timer` to express different timeout behaviors
- Added `enable_callback_query` parameter to `*Handler` constructors
- Added default `on_timeout` method to `openable` decorator
- Added `IdleTerminate` and `AbsentCallbackQuery` as subclasses of `WaitTooLong` to distinguish between different timeout situations
- Revamped `Listener` to handle different timeout requirements
- Added `types` parameter to `per_chat_id()`
- By default, `per_from_id()` and `UserHandler` reacts to non-`callback_query` only
- Fixed `Bot.download_file()`
- Added docstrings for Sphinx generation
- Re-organized examples

8.1

- Added flavor `edited_chat` and handler function `on_edited_chat_message`
- New Bot API methods: `getChat`, `leaveChat`, `getChatAdministrators`, `getChatMember`, and `getChatMembersCount`
- Added namedtuple `ChatMember` and other new fields
- No longer dependent on `requests`. Use `urllib3` throughout (traditional version).
- Start adding docstring and using Sphinx to generate documentations.

8.0

- Added HTTP connection pooling (for both traditional and async version). Bot API requests are much speedier.
- Most requests are now done with `urllib3`, moving away from `requests`.
- Added module `telepot.routing` and `telepot.async.routing` to provide common key functions and routing tables for `Router` to use.
- Removed method `set_key_function` and `set_routing_table` from `Router`. Access instance variable `key_function` and `routing_table` instead.
- Added function `telepot.message_identifier` to extract message identifier for editing messages.
- Added helper class `Editor` to ease editing messages.
- `ChatHandler`, by default, also captures `callback_query` from the same user.
- Added `InlineUserHandler` to capture only inline-related messages.
- Async version uses `async`/`await`, stops supporting Python 3.4, works on Python 3.5+ from now on.

7.1

- Patched `requests` and `aiohttp` to send unicode filenames

7.0

- Bot API 2.0
- Added new flavor `callback_query`
- Added a bunch of namedtuples to reflect new objects in Bot API
- Added methods:
- `sendVenue()`, `sendContact()`
- `kickChatMember()`, `unbanChatMember()`
- `answerCallbackQuery()`
- `editMessageText()`, `editMessageCaption()`, `editMessageReplyMarkup()`
- To `ChatContext`, added a property `administrator`
- Added `telepot.exception.MigratedToSupergroupChatError`
- Backward-incompatible name changes
- Flavor `normal` → `chat`
- Method `notifyOnMessage` → `message_loop`
- Method `messageLoop` → `message_loop`
- Method `downloadFile` → `download_file`
- Function `telepot.namedtuple.namedtuple` was removed. Create namedtuples using their constructors directly.
- Function `telepot.glance2` was removed. Use `telepot.glance`.
- Chat messages' content type returned by `telepot.glance`:
- `new_chat_participant` → `new_chat_member`
- `left_chat_participant` → `left_chat_member`

6.8

- Added underlying response object to `BadHTTPResponse` and underlying JSON object to `TelegramError`
- Added `TooManyRequestsError` as a subclass to `TelegramError`

Page 4 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.