WriteAccessAllowed

data class WriteAccessAllowed(val fromRequest: Boolean? = null, val webAppName: String? = null, val fromAttachmentMenu: Boolean? = null)(source)

WriteAccessAllowed

This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess.

(auto-generated)

Author

ForteScarlet

Constructors

Link copied to clipboard
constructor(fromRequest: Boolean? = null, webAppName: String? = null, fromAttachmentMenu: Boolean? = null)

Properties

Link copied to clipboard
@SerialName(value = "from_attachment_menu")
val fromAttachmentMenu: Boolean? = null

Optional. True, if the access was granted when the bot was added to the attachment or side menu

Link copied to clipboard
@SerialName(value = "from_request")
val fromRequest: Boolean? = null

Optional. True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess

Link copied to clipboard
@SerialName(value = "web_app_name")
val webAppName: String? = null

Optional. Name of the Web App, if the access was granted when the Web App was launched from a link