Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Televerse v1.15.10 #240

Merged
merged 20 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
# 1.15.10

- Added `Bot.fromAPI` constructor for creating Bot instance from `RawAPI` instance.
- `Bot.command`, `Bot.text`, `Bot.hears`, and many more methods now listens to all Message types (Message, Channel Posts, and edited messages of both)
- ⚠️ Added `chatId` parameter to `Bot.shippingQuery` and `Bot.preCheckoutQuery`.
- Refactored code for quality and better readability and added docs.
- Added `ScopeOptions` class that can contain additional info for handler scope.
- `ScopeOptions.forked` to create forked handlers. Forked handlers are run without conditions.
- `ScopeOptions.customPredicate` can be used to set a middleware to check if the update should be processed or skipped.
- Migrated to `Dart 3.0.0`
- `Bot.removeScope` can be used to remove already set handlers.
- Accepts `ScopeOption` on both menus as well.

# 1.15.9

- Improved efficiency by removing redundant `getMe` calls while registering `command` handlers and `whenMentioned` handlers.
- Made `LongPolling.allowedUpdates` nullable, and removed the constant empty list initialization.
- Updated the README.


# 1.15.8

- Introducing `TGException` enum which is a collection of different possible Telegram exceptions binded with their reasons and possible solutions.
Expand Down
Loading
Loading