Merge pull request #166 from VOID001/del-patch

Add helper function NewDeleteMessage
bot-api-6.1
Syfaro 2018-04-28 13:49:37 -05:00 committed by GitHub
commit eafee51d2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,13 @@ func NewMessage(chatID int64, text string) MessageConfig {
} }
} }
func NewDeleteMessage(chatID int64, messageID int) DeleteMessageConfig {
return DeleteMessageConfig{
ChatID: chatID,
MessageID: messageID,
}
}
// NewMessageToChannel creates a new Message that is sent to a channel // NewMessageToChannel creates a new Message that is sent to a channel
// by username. // by username.
// //