all repos — telegram-bot-api @ f399a2424c75d40656bf0fec72aa831ae8edcb04

Golang bindings for the Telegram Bot API

Merge pull request #508 from go-telegram-bot-api/bot-api-5.6

Updates for Bot API 5.6
Syfaro syfaro@huefox.com
Sat, 16 Apr 2022 11:56:29 -0400
commit

f399a2424c75d40656bf0fec72aa831ae8edcb04

parent

ef6e421559d82708b59888ba2022da7602284053

2 files changed, 3 insertions(+), 0 deletions(-)

jump to
M configs.goconfigs.go

@@ -266,6 +266,7 @@ // BaseChat is base type for all chat config types.

type BaseChat struct { ChatID int64 // required ChannelUsername string + ProtectContent bool ReplyToMessageID int ReplyMarkup interface{} DisableNotification bool

@@ -279,6 +280,7 @@ params.AddFirstValid("chat_id", chat.ChatID, chat.ChannelUsername)

params.AddNonZero("reply_to_message_id", chat.ReplyToMessageID) params.AddBool("disable_notification", chat.DisableNotification) params.AddBool("allow_sending_without_reply", chat.AllowSendingWithoutReply) + params.AddBool("protect_content", chat.ProtectContent) err := params.AddInterface("reply_markup", chat.ReplyMarkup)
M types.gotypes.go

@@ -712,6 +712,7 @@ // “bold” (bold text),

// “italic” (italic text), // “underline” (underlined text), // “strikethrough” (strikethrough text), + // "spoiler" (spoiler message), // “code” (monowidth string), // “pre” (monowidth block), // “text_link” (for clickable text URLs),