class Hamilton::Types::SwitchInlineQueryChosenChat

Overview

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

Included Modules

Defined in:

types/swith_online_query_chosen_chat.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def allow_bot_chats : Bool | Nil #

True, if private chats with bots can be chosen.


def allow_bot_chats=(allow_bot_chats : Bool | Nil) #

True, if private chats with bots can be chosen.


def allow_channel_chats : Bool | Nil #

True, if channel chats can be chosen.


def allow_channel_chats=(allow_channel_chats : Bool | Nil) #

True, if channel chats can be chosen.


def allow_group_chats : Bool | Nil #

True, if group and supergroup chats can be chosen.


def allow_group_chats=(allow_group_chats : Bool | Nil) #

True, if group and supergroup chats can be chosen.


def allow_user_chats : Bool | Nil #

True, if private chats with users can be chosen.


def allow_user_chats=(allow_user_chats : Bool | Nil) #

True, if private chats with users can be chosen.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def query : String | Nil #

The default inline query to be inserted in the input field. If left empty, only the bot's username will be inserted.


def query=(query : String | Nil) #

The default inline query to be inserted in the input field. If left empty, only the bot's username will be inserted.