all repos — telegram-bot-api @ 32775370ac1cdef44f66c8da5537b751adaa0567

Golang bindings for the Telegram Bot API

Add NewDeleteMessage

Signed-off-by: Jianqiu Zhang <zhangjianqiu13@gmail.com>
Jianqiu Zhang zhangjianqiu13@gmail.com
Sun, 22 Apr 2018 18:40:58 +0800
commit

32775370ac1cdef44f66c8da5537b751adaa0567

parent

e2916e08add24b4d520f58626bb4c94d0087eca2

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