Amanobot

Latest version: v2.1.0

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

Scan your dependencies

Page 5 of 11

6.7

- Added a few `TelegramError` subclasses to indicate specific errors
- Override `BadHTTPResponse`'s `__unicode__()` and `__str__()` to shorten traceback

6.6

- Changed `Answerer` interface. Compute function is now passed to method `answer()`, not to the constructor.
- Added parameter `disable_notification` to methods `sendZZZ()`
- Added function `telepot.delegate.per_application()` and `per_message()`
- Used `data` to pass POST parameters to prevent too-long query strings on URL
- Async version support pushed back to Python 3.4.2

6.5

- Supports file-like object and filename when sending files
- Moved all exceptions to module `telepot.exception`
- Expanded testing to Python 3.5

6.4

- Introduced automatic message routing to `Bot.handle()` and `ZZZHandler.on_message()`. Messages are routed to sub-handlers according to flavor, by default.
- As an alternative to implementing `Bot.handle(msg)`, you may implement `Bot.on_chat_message(msg)`, `Bot.on_inline_query(msg)`, and `Bot.on_chosen_inline_result(msg)` as needed.
- As an alternative to implementing `ZZZHandler.on_message()`, you may implement `ZZZHandler.on_chat_message(msg)`, `ZZZHandler.on_inline_query(msg)`, and `ZZZHandler.on_chosen_inline_result(msg)` as needed.
- `notifyOnMessage()` and `messageLoop()` accept a dict as callback, routing messages according to flavor.
- Added function `telepot.flavor_router()`, classes `telepot.helper.Router` and `telepot.helper.DefaultRouterMixin`, and their async counterparts to facilitate message routing.
- Many functions in `telepot.delegate` and `telepot.helper` now have aliases in their respective async modules, making imports more symmetric.

6.3

- Added `Answerer` class to better deal with inline queries
- Made `telepot.glance()` equivalent to `telepot.glance2()`. Developers are encouraged to use `telepot.glance()` from now on.
- Added `telepot.flance()`, a combination of `telepot.flavor()` and `telepot.glance()`.

6.2

- Handle new field `chosen_inline_result` in Update object
- `telepot.flavor()` returns a new flavor `chosen_inline_result`
- Added `telepot.namedtuple.ChosenInlineResult` class

Page 5 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.