Skip to content

Commit 91f73c5

Browse files
authored
Merge #326: v2.4.1
2 parents 49a7605 + 951df81 commit 91f73c5

File tree

6 files changed

+13
-15
lines changed

6 files changed

+13
-15
lines changed

CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
# 2.4.1
2+
3+
- Fix typo in `MessageOriginChannel`
4+
15
# 2.4.0
26

37
- All Telegram models are now re-written with Freezed
48
- Breaking: `Keyboard` & `InlineKeyboard` usage. [Check this PR comment for details](https://github.com/xooniverse/televerse/pull/318#issuecomment-2662189756).
59

6-
710
# 2.4.0-dev.3
811

912
- Surpress all the `invalid_annotation_target` warnings

example/example.dart

-5
This file was deleted.

lib/src/telegram/models/message_origin.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ sealed class MessageOrigin with _$MessageOrigin implements _MessageOriginImpl {
101101
@JsonKey(name: 'date', required: true) required int date,
102102

103103
/// Channel chat to which the message was originally sent
104-
@JsonKey(name: 'sender_chat') required Chat chat,
104+
@JsonKey(name: 'chat') required Chat chat,
105105

106106
/// Unique message identifier inside the chat
107107
@JsonKey(name: 'message_id') required int messageId,

lib/src/telegram/models/message_origin.freezed.dart

+5-5
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ abstract class _$$MessageOriginChannelImplCopyWith<$Res>
687687
{@JsonKey(name: 'type', defaultValue: MessageOriginType.channel)
688688
MessageOriginType type,
689689
@JsonKey(name: 'date', required: true) int date,
690-
@JsonKey(name: 'sender_chat') Chat chat,
690+
@JsonKey(name: 'chat') Chat chat,
691691
@JsonKey(name: 'message_id') int messageId,
692692
@JsonKey(name: 'author_signature') String? authorSignature});
693693

@@ -755,7 +755,7 @@ class _$MessageOriginChannelImpl implements MessageOriginChannel {
755755
{@JsonKey(name: 'type', defaultValue: MessageOriginType.channel)
756756
this.type = MessageOriginType.channel,
757757
@JsonKey(name: 'date', required: true) required this.date,
758-
@JsonKey(name: 'sender_chat') required this.chat,
758+
@JsonKey(name: 'chat') required this.chat,
759759
@JsonKey(name: 'message_id') required this.messageId,
760760
@JsonKey(name: 'author_signature') this.authorSignature})
761761
: assert(type == MessageOriginType.channel,
@@ -776,7 +776,7 @@ class _$MessageOriginChannelImpl implements MessageOriginChannel {
776776

777777
/// Channel chat to which the message was originally sent
778778
@override
779-
@JsonKey(name: 'sender_chat')
779+
@JsonKey(name: 'chat')
780780
final Chat chat;
781781

782782
/// Unique message identifier inside the chat
@@ -854,7 +854,7 @@ abstract class MessageOriginChannel implements MessageOrigin {
854854
{@JsonKey(name: 'type', defaultValue: MessageOriginType.channel)
855855
final MessageOriginType type,
856856
@JsonKey(name: 'date', required: true) required final int date,
857-
@JsonKey(name: 'sender_chat') required final Chat chat,
857+
@JsonKey(name: 'chat') required final Chat chat,
858858
@JsonKey(name: 'message_id') required final int messageId,
859859
@JsonKey(name: 'author_signature') final String? authorSignature}) =
860860
_$MessageOriginChannelImpl;
@@ -873,7 +873,7 @@ abstract class MessageOriginChannel implements MessageOrigin {
873873
int get date;
874874

875875
/// Channel chat to which the message was originally sent
876-
@JsonKey(name: 'sender_chat')
876+
@JsonKey(name: 'chat')
877877
Chat get chat;
878878

879879
/// Unique message identifier inside the chat

lib/src/telegram/models/message_origin.g.dart

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: televerse
22
description: Televerse lets you create your own efficient Telegram bots with ease in Dart. Supports latest Telegram Bot API - 8.3!
3-
version: 2.4.0
3+
version: 2.4.1
44
homepage: https://televerse.xooniverse.com
55
repository: https://github.com/xooniverse/televerse
66
topics:

0 commit comments

Comments
 (0)