Add NewDeleteMessage

Signed-off-by: Jianqiu Zhang <zhangjianqiu13@gmail.com>
pull/166/head
Jianqiu Zhang 7 years ago
parent e2916e08ad
commit 32775370ac
No known key found for this signature in database
GPG Key ID: B012733142D79E59
  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 // NewMessageToChannel creates a new Message that is sent to a channel
// by username. // by username.
// //