WriteAccessAllowed constructor

const WriteAccessAllowed({
  1. @JsonKey(name: 'web_app_name') String? webAppName,
  2. @JsonKey(name: 'from_request') bool? fromRequest,
  3. @JsonKey(name: 'from_attachment_menu') bool? fromAttachmentMenu,
})

Constructs a WriteAccessAllowed object.

Implementation

const factory WriteAccessAllowed({
  /// Name of the connected website. Present only if the user allowed the bot
  /// to send them messages.
  @JsonKey(name: 'web_app_name') String? webAppName,

  /// Optional. True, if the access was granted after the user accepted an
  /// explicit request from a Web App sent by the method requestWriteAccess
  @JsonKey(name: 'from_request') bool? fromRequest,

  /// Optional. True, if the access was granted when the bot was added to the
  /// attachment or side menu
  @JsonKey(name: 'from_attachment_menu') bool? fromAttachmentMenu,
}) = _WriteAccessAllowed;