Merge pull request #166 from VOID001/del-patch

Add helper function NewDeleteMessage
This commit is contained in:
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

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
// by username.
//