From 32775370ac1cdef44f66c8da5537b751adaa0567 Mon Sep 17 00:00:00 2001 From: Jianqiu Zhang Date: Sun, 22 Apr 2018 18:40:58 +0800 Subject: [PATCH] Add NewDeleteMessage Signed-off-by: Jianqiu Zhang --- helpers.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/helpers.go b/helpers.go index 476eeeb..25f2fc1 100644 --- a/helpers.go +++ b/helpers.go @@ -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. //