Skip to content

Commit

Permalink
🚀 Merge #267: Televerse v1.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
HeySreelal committed Jun 28, 2024
2 parents 6056065 + c98619b commit c1c4a8f
Show file tree
Hide file tree
Showing 21 changed files with 786 additions and 473 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 1.20.0

- 🥳 Support for Custom Context
- Added detailed
[usage documentation for custom context here](https://televerse.web.app/doc/custom-context).
- The custom context feature allows you to extend the base functionality of your
bot by using your own custom context classes.
- Added `Bot.contextBuilder` method
- Refactors across the library to cope with `<CTX extends Context>`
- Refactored `Bot`, `Handler`, `Fetcher`, `Menu`, `BotError`, `Conversation`
etc.
- Fixed an issue in `KeyboardMenu` that caused some features not to work.
- Added documentation on almost all new classes and typedefs.

# 1.19.5

- 🧑🏻‍🔧 Fix in `InlineQueryResultBuilder` methods `voice` and `video`.
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,22 @@ public interface, making it easy for developers to write strictly typed code.

## 🔥 What's latest?

### 🗓️ June 28, 2024

🎉 Support for Custom Contexts!

Televerse now lets you build even more powerful bots with custom contexts!

- Design custom context classes to store information specific to your bot's
needs.
- Keep your bot's logic organized with private context members and methods.
- Add features like localization by integrating mixins.

With the new `Bot.contextBuilder` method, you can define specialized context
constructors to create context objects with personalized behaviors and
capabilities. This update allows you to tailor your bot's responses, handle
complex workflows, and integrate additional features seamlessly.

### 🗓️ June 22, 2024

Introducing Middleware & Transformer support! You can now use the `Bot.use`
Expand Down
2 changes: 1 addition & 1 deletion lib/src/telegram/models/keyboard_button_poll_type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class KeyboardButtonPollType {
/// Creates a [KeyboardButtonPollType] object from JSON object
factory KeyboardButtonPollType.fromJson(Map<String, dynamic> json) {
return KeyboardButtonPollType(
type: json['type'],
type: PollType.fromJson(json['type']),
);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of '../../televerse.dart';
part of '../../../televerse.dart';

/// Raw API for the Telegram Bot API.
class RawAPI {
Expand Down
Loading

0 comments on commit c1c4a8f

Please sign in to comment.