File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,11 @@ type Fileable interface {
6363
6464// BaseChat is base type for all chat config types.
6565type BaseChat struct {
66- ChatID int // required
67- ChannelUsername string
68- ReplyToMessageID int
69- ReplyMarkup interface {}
66+ ChatID int // required
67+ ChannelUsername string
68+ ReplyToMessageID int
69+ ReplyMarkup interface {}
70+ DisableNotification bool
7071}
7172
7273// values returns url.Values representation of BaseChat
@@ -91,6 +92,8 @@ func (chat *BaseChat) values() (url.Values, error) {
9192 v .Add ("reply_markup" , string (data ))
9293 }
9394
95+ v .Add ("disable_notification" , strconv .FormatBool (chat .DisableNotification ))
96+
9497 return v , nil
9598}
9699
@@ -135,6 +138,8 @@ func (file BaseFile) params() (map[string]string, error) {
135138 params ["file_size" ] = strconv .Itoa (file .FileSize )
136139 }
137140
141+ params ["disable_notification" ] = strconv .FormatBool (file .DisableNotification )
142+
138143 return params , nil
139144}
140145
You can’t perform that action at this time.
0 commit comments