@@ -639,17 +639,20 @@ type SwitchInlineQueryChosenChat struct {
639639 //The default inline query to be inserted in the input field. If left empty, only the bot's username will be inserted
640640 Query string `json:"query,omitempty"`
641641
642+ // Known issue in macOS Telegram Desktop not respecting allow_*_chats field:
643+ // https://github.com/overtake/TelegramSwift/issues/1213
644+
642645 // Optional. True, if private chats with users can be chosen
643- AllowUserChats bool `json:"allow_user_chats"` // DO not omit this field, as it defaults to TRUE
646+ AllowUserChats bool `json:"allow_user_chats,omitempty"`
644647
645648 // Optional. True, if private chats with bots can be chosen
646- AllowBotChats bool `json:"allow_bot_chats"` // DO not omit this field, as it defaults to TRUE
649+ AllowBotChats bool `json:"allow_bot_chats,omitempty"`
647650
648651 // Optional. True, if group and supergroup chats can be chosen
649- AllowGroupChats bool `json:"allow_group_chats"` // DO not omit this field, as it defaults to TRUE
652+ AllowGroupChats bool `json:"allow_group_chats,omitempty"`
650653
651654 // Optional. True, if channel chats can be chosen
652- AllowChannelChats bool `json:"allow_channel_chats"` // DO not omit this field, as it defaults to TRUE
655+ AllowChannelChats bool `json:"allow_channel_chats,omitempty"`
653656}
654657
655658func (v SwitchInlineQueryChosenChat ) Validate () error {
0 commit comments