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

Removed TeleverseEvent #311

Merged
merged 2 commits into from
Nov 25, 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
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# 2.0.1
# 2.0.2

- 🆕 Supports Middleware chaining for each handler.
- ⚠️ Updated Conversation API definitions.
- 📖 [Conversation API migration guide is available at website](https://televerse.xooniverse.com/extras/migration-v1-v2.html).
- Updated `Fetcher` implementations.
- Improved error wordings.
- Refactored `bot.dart`
- ⚠️ Removed `Bot.on` method.
- ⚠️ Removed `Bot.on` method & `TeleverseEvent` enum.

# 2.0.1

- [Retracted]

# 2.0.0

Expand Down
11 changes: 0 additions & 11 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,6 @@ void main() async {
await ctx.reply("Oh wow, this is a big photo!");
});

/// So with the [Bot.on] method you can listen for particular updates. Yeah, that indeed means
/// that you can listen for all commands simply by listening for the [TeleverseEvent.command] event.
bot.on(TeleverseEvent.command, (ctx) async {
await ctx.reply("This will be executed for every command unhandled");

// Do your logic here
if (ctx.message?.text == "/televerse") {
await ctx.reply("Much love from Televerse! ❤️");
}
});

/// You can also listen for particular message entities.
bot.entity(MessageEntityType.mention, (ctx) async {
// And use the `Message.geteEntityText` method to extract the value.
Expand Down
72 changes: 0 additions & 72 deletions lib/src/televerse/filters/filters.dart

This file was deleted.

3 changes: 0 additions & 3 deletions lib/televerse.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ part 'src/televerse/context/context.dart';
part 'src/televerse/context/methods.dart';
part 'src/televerse/context/properties.dart';

// The On Method
part 'src/televerse/filters/filters.dart';

// Keyboards & Menus
part 'src/televerse/markups/inline_keyboard.dart';
part 'src/televerse/markups/inline_menu.dart';
Expand Down