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.20.0 #267

Merged
merged 8 commits into from
Jun 28, 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: 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
Loading