Added
- Added `callback` context helper.
- Added `shipping` context helper.
- Added `checkout` context helper.
- Added `poll` context helper.
- Added `answer` context helper.
- Added well typed `Request.send2()` method. This method returns result directly instead of `Response` object.
- Added well typed `Response.method` property.
- Added `File.url` property. This property return url of a file requested by `GetFile` method.
- Ability to use callable classes and instances as handlers.
- `explanation`, `explanation_entities`, `open_period`, `close_date` fields to `Poll` class.
- `explanation`, `explanation_parse_mode`, `open_period`, `close_date` fields to `sendPoll` request class.
- `emoji` field to `sendDice` request class.
- `emoji` field to `Dice` class.
Fixed
- Minor bugfixes.
Changed
- Refactored api.
Removed
- Old `context` helper functions. Now `context` and `context2` is the same.
Deprecated
- `context2` is deprecated and will be removed in version 2.3.
- `Request.send()` method is deprecated and will be removed in version 2.3. Use `Request.send2()` instead.
- `Response.method` property is deprecated and will be removed in version 2.3. Use `Response.request` instead.
- `BaseDispatcherProxy` class is deprecated and will be removed in version 3.0. Use `BaseDispatcher` instead.
- `BaseDispatcher.from_proxy` method is deprecated and will be removed in version 3.0. Use `from_dispatcher` instead.
Changed
- Framework now corresponds to Telegram Bot API 4.8.