all repos — telegram-bot-api @ eafee51d2a62f30bd15d8327b9076600a64c1d04

Golang bindings for the Telegram Bot API

Merge pull request #166 from VOID001/del-patch

Add helper function NewDeleteMessage
Syfaro syfaro@huefox.com
Sat, 28 Apr 2018 13:49:37 -0500
commit

eafee51d2a62f30bd15d8327b9076600a64c1d04

parent

0e0af0c480ea98e982d5f4d45fb39577c6ab1e3e

1 files changed, 7 insertions(+), 0 deletions(-)

jump to
M helpers.gohelpers.go

@@ -19,6 +19,13 @@ DisableWebPagePreview: false,

} } +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. //