Merge pull request #166 from VOID001/del-patch
Add helper function NewDeleteMessage
This commit is contained in:
commit
eafee51d2a
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue