Add NewDeleteMessage

Signed-off-by: Jianqiu Zhang <zhangjianqiu13@gmail.com>
bot-api-6.1
Jianqiu Zhang 2018-04-22 18:40:58 +08:00
parent e2916e08ad
commit 32775370ac
No known key found for this signature in database
GPG Key ID: B012733142D79E59
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.
// //