Add NewDeleteMessage
Signed-off-by: Jianqiu Zhang <zhangjianqiu13@gmail.com>bot-api-6.1
parent
e2916e08ad
commit
32775370ac
|
@ -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.
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue