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

Updates for Bot API 5.6
bot-api-6.1
Syfaro 2022-04-16 11:56:29 -04:00 committed by GitHub
commit f399a2424c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -266,6 +266,7 @@ func (CloseConfig) params() (Params, error) {
type BaseChat struct {
ChatID int64 // required
ChannelUsername string
ProtectContent bool
ReplyToMessageID int
ReplyMarkup interface{}
DisableNotification bool
@ -279,6 +280,7 @@ func (chat *BaseChat) params() (Params, error) {
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)

View File

@ -712,6 +712,7 @@ type MessageEntity struct {
// “italic” (italic text),
// “underline” (underlined text),
// “strikethrough” (strikethrough text),
// "spoiler" (spoiler message),
// “code” (monowidth string),
// “pre” (monowidth block),
// “text_link” (for clickable text URLs),