-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
54 additions
and
9 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
13 changes: 13 additions & 0 deletions
13
core/src/com/bot4s/telegram/methods/UnpinAllGeneralForumTopicMessages.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.bot4s.telegram.methods | ||
|
||
import com.bot4s.telegram.models.ChatId | ||
|
||
/** | ||
* Use this method to clear the list of pinned messages in a General forum topic. | ||
* | ||
* he bot must be an administrator in the chat for this to work and must have the can_pin_messages administrator right in the supergroup. | ||
* Returns True on success. | ||
* | ||
* @param chatId ChatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) | ||
*/ | ||
case class UnpinAllGeneralForumTopicMessages(chatId: ChatId) extends JsonRequest[Boolean] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.bot4s.telegram.models | ||
|
||
/** | ||
* This object represents a message about a forwarded story in the chat. Currently holds no information. | ||
*/ | ||
case object Story |
10 changes: 7 additions & 3 deletions
10
core/src/com/bot4s/telegram/models/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,13 @@ | ||
package com.bot4s.telegram.models | ||
|
||
/** | ||
* This object represents a service message about a user allowing a bot added to the attachment menu to write messages. Currently holds no information. | ||
* @param webAppName Name of the Web App which was launched from a link | ||
* This object represents a service message about a user allowing a bot added to the attachment menu to write messages. | ||
* @param fromRequest True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess | ||
* @param webAppName Name of the Web App which was launched from a link | ||
* @param fromAttachmentMenu True, if the access was granted when the bot was added to the attachment or side menu | ||
*/ | ||
case class WriteAccessAllowed( | ||
webAppName: Option[String] = None | ||
fromRequest: Option[Boolean] = None, | ||
webAppName: Option[String] = None, | ||
fromAttachmentMenu: Option[Boolean] = None | ||
) |