ChatPermissions class

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

Inheritance
Available Extensions

Constructors

ChatPermissions({required bool can_send_basic_messages, required bool can_send_audios, required bool can_send_documents, required bool can_send_photos, required bool can_send_videos, required bool can_send_video_notes, required bool can_send_voice_notes, required bool can_send_polls, required bool can_send_other_messages, required bool can_add_web_page_previews, required bool can_change_info, required bool can_invite_users, required bool can_pin_messages, required bool can_manage_topics, int? extra, int? clientId})
Describes actions that a user is allowed to take in a chat

Properties

can_add_web_page_previews ↔ bool
True, if the user may add a web page preview to their messages.
read / write
can_change_info ↔ bool
True, if the user can change the chat title, photo, and other settings.
read / write
can_invite_users ↔ bool
True, if the user can invite new users to the chat.
read / write
can_manage_topics ↔ bool
True, if the user can manage topics.
read / write
can_pin_messages ↔ bool
True, if the user can pin messages.
read / write
can_send_audios ↔ bool
True, if the user can send music files.
read / write
can_send_basic_messages ↔ bool
True, if the user can send text messages, contacts, invoices, locations, and venues.
read / write
can_send_documents ↔ bool
True, if the user can send documents.
read / write
can_send_other_messages ↔ bool
True, if the user can send animations, games, stickers, and dice and use inline bots.
read / write
can_send_photos ↔ bool
True, if the user can send audio photos.
read / write
can_send_polls ↔ bool
True, if the user can send polls.
read / write
can_send_video_notes ↔ bool
True, if the user can send video notes.
read / write
can_send_videos ↔ bool
True, if the user can send audio videos.
read / write
can_send_voice_notes ↔ bool
True, if the user can send voice notes.
read / write
clientId ↔ int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
extra ↔ int?
Request identifier. Must be non-zero.
read / writeoverride
hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Object to Map serializer
override
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromMap(Map<String, dynamic>? _map) → ChatPermissions?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"chatPermissions"