Merge pull request #15 from Etherdrake/synced

Added NewDeleteMessages function
pull/16/head
OvyFlash 2024-02-17 21:21:07 +02:00 committed by GitHub
commit 6f966b81a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 0 deletions

View File

@ -40,6 +40,19 @@ func NewDeleteMessage(chatID int64, messageID int) DeleteMessageConfig {
}
}
// NewDeleteMessages creates a request to delete multiple messages. The messages have to be
// in the same chat. Provide the message ids as an array of integers
func NewDeleteMessages(chatID int64, messageIDs []int) DeleteMessagesConfig {
return DeleteMessagesConfig{
BaseChatMessages: BaseChatMessages{
ChatConfig: ChatConfig{
ChatID: chatID,
},
MessageIDs: messageIDs,
},
}
}
// NewMessageToChannel creates a new Message that is sent to a channel
// by username.
//