Skip to content

class Tourmaline::BotCommandScopeChat
inherits Reference #

Represents the scope of bot commands, covering a specific chat.

Included modules

JSON::Serializable

Constructors#

.new(type, chat_id) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#chat_id : Int32 | Int64 | String #

Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)

View source

#chat_id=(chat_id : Int32 | Int64 | String) #

Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)

View source

#type : String #

Scope type, must be chat

View source

#type=(type : String) #

Scope type, must be chat

View source