# `ExGram.Model.SwitchInlineQueryChosenChat`
[🔗](https://github.com/rockneurotiko/ex_gram/blob/0.64.0/lib/ex_gram.ex#L4884)

This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query.

Check the [documentation of this model on Telegram Bot API](https://core.telegram.org/bots/api#switchinlinequerychosenchat)

- `query (optional)`: Optional. The default inline query to be inserted in the input field. If left empty, only the bot's username will be inserted
- `allow_user_chats (optional)`: Optional. True, if private chats with users can be chosen
- `allow_bot_chats (optional)`: Optional. True, if private chats with bots can be chosen
- `allow_group_chats (optional)`: Optional. True, if group and supergroup chats can be chosen
- `allow_channel_chats (optional)`: Optional. True, if channel chats can be chosen

# `t`

```elixir
@type t() :: %ExGram.Model.SwitchInlineQueryChosenChat{
  allow_bot_chats: boolean() | nil,
  allow_channel_chats: boolean() | nil,
  allow_group_chats: boolean() | nil,
  allow_user_chats: boolean() | nil,
  query: String.t() | nil
}
```

# `decode_as`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
