Skip to content

Commit

Permalink
added new fields to wtire access allowed object
Browse files Browse the repository at this point in the history
  • Loading branch information
DinoLeung committed Mar 30, 2024
1 parent 2a0b39e commit 4ab3f53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/telegram/models/write_access_allowed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ part of '../model.dart';
/// https://core.telegram.org/bots/api#writeaccessallowed
@JsonSerializable(fieldRename: FieldRename.snake)
class WriteAccessAllowed {
bool? fromRequest;
String? webAppName;
bool? fromAttachmentMenu;

WriteAccessAllowed({
this.fromRequest,
this.webAppName,
this.fromAttachmentMenu,
});
factory WriteAccessAllowed.fromJson(Map<String, dynamic> json) =>
_$WriteAccessAllowedFromJson(json);
Expand Down

0 comments on commit 4ab3f53

Please sign in to comment.