class Telegram::API::ChatPermissions
- Telegram::API::ChatPermissions
- Telegram::API::Type
- Reference
- Object
Overview
Describes actions that a non-administrator user is allowed to take in a chat.
Defined in:
telegram/api/generated/types.crConstructors
-
.new(pull : JSON::PullParser)
Describes actions that a non-administrator user is allowed to take in a chat.
- .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)
Instance Method Summary
-
#can_add_web_page_previews : Bool | Nil
Optional.
-
#can_add_web_page_previews=(can_add_web_page_previews : Bool | Nil)
Optional.
-
#can_change_info : Bool | Nil
Optional.
-
#can_change_info=(can_change_info : Bool | Nil)
Optional.
-
#can_invite_users : Bool | Nil
Optional.
-
#can_invite_users=(can_invite_users : Bool | Nil)
Optional.
-
#can_pin_messages : Bool | Nil
Optional.
-
#can_pin_messages=(can_pin_messages : Bool | Nil)
Optional.
-
#can_send_media_messages : Bool | Nil
Optional.
-
#can_send_media_messages=(can_send_media_messages : Bool | Nil)
Optional.
-
#can_send_messages : Bool | Nil
Optional.
-
#can_send_messages=(can_send_messages : Bool | Nil)
Optional.
-
#can_send_other_messages : Bool | Nil
Optional.
-
#can_send_other_messages=(can_send_other_messages : Bool | Nil)
Optional.
-
#can_send_polls : Bool | Nil
Optional.
-
#can_send_polls=(can_send_polls : Bool | Nil)
Optional.
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
Describes actions that a non-administrator user is allowed to take in a chat.
Instance Method Detail
Optional. True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages
Optional. True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages
Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups
Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups
Optional. True, if the user is allowed to invite new users to the chat
Optional. True, if the user is allowed to invite new users to the chat
Optional. True, if the user is allowed to pin messages. Ignored in public supergroups
Optional. True, if the user is allowed to pin messages. Ignored in public supergroups
Optional. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages
Optional. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages
Optional. True, if the user is allowed to send text messages, contacts, locations and venues
Optional. True, if the user is allowed to send text messages, contacts, locations and venues
Optional. True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages
Optional. True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages
Optional. True, if the user is allowed to send polls, implies can_send_messages
Optional. True, if the user is allowed to send polls, implies can_send_messages