Merge pull request #166 from VOID001/del-patch

Add helper function NewDeleteMessage
pull/171/head
Syfaro 7 years ago committed by GitHub
commit eafee51d2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      helpers.go

@ -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.
//