Add ProtectContent field, spoiler type comment.

This commit is contained in:
Syfaro 2022-01-02 22:00:12 -05:00
parent ef6e421559
commit 50273c947a
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)