Skip to content

Commit

Permalink
implemented message origin classes
Browse files Browse the repository at this point in the history
  • Loading branch information
DinoLeung committed Apr 6, 2024
1 parent 4050fe4 commit 375d9de
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
12 changes: 8 additions & 4 deletions lib/src/telegram/model.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/src/telegram/models/message_origin_channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class MessageOriginChannel implements MessageOrigin {
String? authorSignature;

MessageOriginChannel({
required this.type,
this.type = MessageOriginType.channel,
required this.date,
required this.chat,
required this.messageId,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/telegram/models/message_origin_chat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class MessageOriginChat implements MessageOrigin {
String? authorSignature;

MessageOriginChat({
required this.type,
this.type = MessageOriginType.chat,
required this.date,
required this.senderChat,
this.authorSignature,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/telegram/models/message_origin_hidden_user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class MessageOriginHiddenUser implements MessageOrigin {
String senderUserName;

MessageOriginHiddenUser({
required this.type,
this.type = MessageOriginType.hiddenUser,
required this.date,
required this.senderUserName,
});
Expand Down
2 changes: 1 addition & 1 deletion lib/src/telegram/models/message_origin_user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class MessageOriginUser implements MessageOrigin {
User senderUser;

MessageOriginUser({
required this.type,
this.type = MessageOriginType.user,
required this.date,
required this.senderUser,
});
Expand Down

0 comments on commit 375d9de

Please sign in to comment.