class Telegram::API::ChatPermissions

Overview

Describes actions that a non-administrator user is allowed to take in a 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(pull : JSON::PullParser) #

Describes actions that a non-administrator user is allowed to take in a chat.


[View source]
def self.new(can_send_messages : Bool | Nil = nil, can_send_media_messages : Bool | Nil = nil, can_send_polls : Bool | Nil = nil, can_send_other_messages : Bool | Nil = nil, can_add_web_page_previews : Bool | Nil = nil, can_change_info : Bool | Nil = nil, can_invite_users : Bool | Nil = nil, can_pin_messages : Bool | Nil = nil) #

[View source]

Instance Method Detail

def can_add_web_page_previews : Bool | Nil #

Optional. True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages


[View source]
def can_add_web_page_previews=(can_add_web_page_previews : Bool | Nil) #

Optional. True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages


[View source]
def can_change_info : Bool | Nil #

Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups


[View source]
def can_change_info=(can_change_info : Bool | Nil) #

Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups


[View source]
def can_invite_users : Bool | Nil #

Optional. True, if the user is allowed to invite new users to the chat


[View source]
def can_invite_users=(can_invite_users : Bool | Nil) #

Optional. True, if the user is allowed to invite new users to the chat


[View source]
def can_pin_messages : Bool | Nil #

Optional. True, if the user is allowed to pin messages. Ignored in public supergroups


[View source]
def can_pin_messages=(can_pin_messages : Bool | Nil) #

Optional. True, if the user is allowed to pin messages. Ignored in public supergroups


[View source]
def can_send_media_messages : Bool | Nil #

Optional. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages


[View source]
def can_send_media_messages=(can_send_media_messages : Bool | Nil) #

Optional. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages


[View source]
def can_send_messages : Bool | Nil #

Optional. True, if the user is allowed to send text messages, contacts, locations and venues


[View source]
def can_send_messages=(can_send_messages : Bool | Nil) #

Optional. True, if the user is allowed to send text messages, contacts, locations and venues


[View source]
def can_send_other_messages : Bool | Nil #

Optional. True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages


[View source]
def can_send_other_messages=(can_send_other_messages : Bool | Nil) #

Optional. True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages


[View source]
def can_send_polls : Bool | Nil #

Optional. True, if the user is allowed to send polls, implies can_send_messages


[View source]
def can_send_polls=(can_send_polls : Bool | Nil) #

Optional. True, if the user is allowed to send polls, implies can_send_messages


[View source]