BOT API 6.8 implementation
This commit is contained in:
parent
371d8b695f
commit
17d3e395d5
2 changed files with 36 additions and 5 deletions
13
configs.go
13
configs.go
|
@ -93,7 +93,7 @@ const (
|
|||
// this update in the list of allowed_updates to receive these updates.
|
||||
UpdateTypeChatMember = "chat_member"
|
||||
|
||||
// UpdateTypeChatJoinRequest is request to join the chat has been sent.
|
||||
// UpdateTypeChatJoinRequest is request to join the chat has been sent.
|
||||
// The bot must have the can_invite_users administrator right in the chat to receive these updates.
|
||||
UpdateTypeChatJoinRequest = "chat_join_request"
|
||||
)
|
||||
|
@ -2697,6 +2697,17 @@ func (config UnhideGeneralForumTopicConfig) method() string {
|
|||
return "unhideGeneralForumTopic"
|
||||
}
|
||||
|
||||
// UnpinAllGeneralForumTopicMessagesConfig allows you to to clear
|
||||
// the list of pinned messages in a General forum topic.
|
||||
// The 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.
|
||||
type UnpinAllGeneralForumTopicMessagesConfig struct{ BaseForum }
|
||||
|
||||
func (config UnpinAllGeneralForumTopicMessagesConfig) method() string {
|
||||
return "unpinAllGeneralForumTopicMessages"
|
||||
}
|
||||
|
||||
// MediaGroupConfig allows you to send a group of media.
|
||||
//
|
||||
// Media consist of InputMedia items (InputMediaPhoto, InputMediaVideo).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue