class Hamilton::Types::BotCommandScopeChatAdministrators

Overview

Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat.

Included Modules

Defined in:

types/bot_command_scope.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 chat_id : String | Int32 #

Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername). Channel direct messages chats and channel chats aren't supported.


def chat_id=(chat_id : String | Int32) #

Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername). Channel direct messages chats and channel chats aren't supported.


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 type : String #

Scope type, must be "chat_administrators".


def type=(type : String) #

Scope type, must be "chat_administrators".