all repos — telegram-bot-api @ 2428a33ac6cdff18cb117d03e08c6af2ab0e0777

Golang bindings for the Telegram Bot API

Merge pull request #243 from TahaPY/master

Update helpers.go
Syfaro syfaro@huefox.com
Tue, 21 Jul 2020 02:09:12 -0500
commit

2428a33ac6cdff18cb117d03e08c6af2ab0e0777

parent

2476225ecc0df3aa8acbc3e577b02f487b92f5cc

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

jump to
M helpers.gohelpers.go

@@ -641,6 +641,18 @@ Text: text,

} } +// NewEditMessageTextAndMarkup allows you to edit the text and replymarkup of a message. +func NewEditMessageTextAndMarkup(chatID int64, messageID int, text string, replyMarkup InlineKeyboardMarkup) EditMessageTextConfig { + return EditMessageTextConfig{ + BaseEdit: BaseEdit{ + ChatID: chatID, + MessageID: messageID, + ReplyMarkup: &replyMarkup, + }, + Text: text, + } +} + // NewEditMessageCaption allows you to edit the caption of a message. func NewEditMessageCaption(chatID int64, messageID int, caption string) EditMessageCaptionConfig { return EditMessageCaptionConfig{