Add ProtectContent field, spoiler type comment.
parent
ef6e421559
commit
50273c947a
|
@ -266,6 +266,7 @@ func (CloseConfig) params() (Params, error) {
|
||||||
type BaseChat struct {
|
type BaseChat struct {
|
||||||
ChatID int64 // required
|
ChatID int64 // required
|
||||||
ChannelUsername string
|
ChannelUsername string
|
||||||
|
ProtectContent bool
|
||||||
ReplyToMessageID int
|
ReplyToMessageID int
|
||||||
ReplyMarkup interface{}
|
ReplyMarkup interface{}
|
||||||
DisableNotification bool
|
DisableNotification bool
|
||||||
|
@ -279,6 +280,7 @@ func (chat *BaseChat) params() (Params, error) {
|
||||||
params.AddNonZero("reply_to_message_id", chat.ReplyToMessageID)
|
params.AddNonZero("reply_to_message_id", chat.ReplyToMessageID)
|
||||||
params.AddBool("disable_notification", chat.DisableNotification)
|
params.AddBool("disable_notification", chat.DisableNotification)
|
||||||
params.AddBool("allow_sending_without_reply", chat.AllowSendingWithoutReply)
|
params.AddBool("allow_sending_without_reply", chat.AllowSendingWithoutReply)
|
||||||
|
params.AddBool("protect_content", chat.ProtectContent)
|
||||||
|
|
||||||
err := params.AddInterface("reply_markup", chat.ReplyMarkup)
|
err := params.AddInterface("reply_markup", chat.ReplyMarkup)
|
||||||
|
|
||||||
|
|
1
types.go
1
types.go
|
@ -712,6 +712,7 @@ type MessageEntity struct {
|
||||||
// “italic” (italic text),
|
// “italic” (italic text),
|
||||||
// “underline” (underlined text),
|
// “underline” (underlined text),
|
||||||
// “strikethrough” (strikethrough text),
|
// “strikethrough” (strikethrough text),
|
||||||
|
// "spoiler" (spoiler message),
|
||||||
// “code” (monowidth string),
|
// “code” (monowidth string),
|
||||||
// “pre” (monowidth block),
|
// “pre” (monowidth block),
|
||||||
// “text_link” (for clickable text URLs),
|
// “text_link” (for clickable text URLs),
|
||||||
|
|
Loading…
Reference in New Issue