ChatPermissions class
Describes actions that a user is allowed to take in a chat
Constructors
- ChatPermissions({String? extra, int? client_id, Bool? can_send_messages, Bool? can_send_media_messages, Bool? can_send_polls, Bool? can_send_other_messages, Bool? can_add_web_page_previews, Bool? can_change_info, Bool? can_invite_users, Bool? can_pin_messages, Bool? can_manage_topics})
-
ChatPermissions.fromMap(Map<
String, dynamic> map)
Properties
- can_add_web_page_previews ↔ Bool?
-
True, if the user may add a web page preview to their messages. Implies can_send_messages permissions
getter/setter pair
- can_change_info ↔ Bool?
-
True, if the user can change the chat title, photo, and other settings
getter/setter pair
- can_invite_users ↔ Bool?
-
True, if the user can invite new users to the chat
getter/setter pair
- can_manage_topics ↔ Bool?
-
True, if the user can manage topics
getter/setter pair
- can_pin_messages ↔ Bool?
-
True, if the user can pin messages
getter/setter pair
- can_send_media_messages ↔ Bool?
-
True, if the user can send audio files, documents, photos, videos, video notes, and voice notes. Implies can_send_messages permissions
getter/setter pair
- can_send_messages ↔ Bool?
-
True, if the user can send text messages, contacts, locations, and venues
getter/setter pair
- can_send_other_messages ↔ Bool?
-
True, if the user can send animations, games, stickers, and dice and use inline bots. Implies can_send_messages permissions
getter/setter pair
- can_send_polls ↔ Bool?
-
True, if the user can send polls. Implies can_send_messages permissions
getter/setter pair
- client_id ↔ int?
-
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
- extra ↔ String?
-
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tdType → String
-
JSON object type; maps to the field @type.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{dynamic skipNulls = true}) → String -
Serialize a Td instance to a JSON string.
If
skipNullsistruethe fields with null values are not serialized.inherited -
toMap(
{dynamic skipNulls = true}) → Map< String, dynamic> -
Create a Map from a Td instance.
override
-
toString(
{dynamic skipNulls = false}) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited