-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Telegram Bot API September 22, 2023 updates (v6.9)
- Loading branch information
Showing
13 changed files
with
122 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 14 additions & 4 deletions
18
telegramium-core/src/main/scala/telegramium/bots/WriteAccessAllowed.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
package telegramium.bots | ||
|
||
/** This object represents a service message about a user allowing a bot to write messages after adding the bot to the | ||
* attachment menu or launching a Web App from a link. | ||
/** 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 which was launched from a link | ||
* 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(webAppName: Option[String] = Option.empty) | ||
final case class WriteAccessAllowed( | ||
fromRequest: Option[Boolean] = Option.empty, | ||
webAppName: Option[String] = Option.empty, | ||
fromAttachmentMenu: Option[Boolean] = Option.empty | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.