class Telegram::API::BotCommandScopeChat

Overview

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

Defined in:

telegram/api/generated/types.cr

Constructors

Instance Method Summary

Instance methods inherited from class Telegram::API::Type

==(other) ==, client client

Constructor methods inherited from class Telegram::API::Type

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(type : String, chat_id : Int64 | String) #

[View source]
def self.new(pull : JSON::PullParser) #

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


[View source]

Instance Method Detail

def chat_id : Int64 | String #

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


[View source]
def chat_id=(chat_id : Int64 | String) #

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


[View source]
def type : String #

Scope type, must be chat


[View source]
def type=(type : String) #

Scope type, must be chat


[View source]