All Downloads are FREE. Search and download functionalities are using the official Maven repository.

telegramium.bots.WriteAccessAllowed.scala Maven / Gradle / Ivy

There is a newer version: 9.711.0
Show newest version
package telegramium.bots

/** 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.
  *
  * @param fromRequest
  *   Optional. True, if the access was granted after the user accepted an explicit request from a Web App sent by the
  *   method requestWriteAccess
  * @param webAppName
  *   Optional. Name of the Web App, if the access was granted when the Web App was launched from a link
  * @param fromAttachmentMenu
  *   Optional. True, if the access was granted when the bot was added to the attachment or side menu
  */
final case class WriteAccessAllowed(
  fromRequest: Option[Boolean] = Option.empty,
  webAppName: Option[String] = Option.empty,
  fromAttachmentMenu: Option[Boolean] = Option.empty
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy