Skip to content

Commit

Permalink
Merge #311: v2.0.2
Browse files Browse the repository at this point in the history
Removed TeleverseEvent
  • Loading branch information
HeySreelal authored Nov 25, 2024
2 parents c2de22a + 395023a commit 1ee26ca
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 88 deletions.
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

0 comments on commit 1ee26ca

Please sign in to comment.