ToggleChatIsPinned class
Changes the pinned state of a chat. There can be up to getOption("pinned_chat_count_max")/getOption("pinned_archived_chat_count_max") pinned non-secret chats and the same number of secret chats in the main/archive chat list. The limit can be increased with Telegram Premium.
Returns Ok.
- Inheritance
- Available Extensions
Constructors
- ToggleChatIsPinned({required ChatList chat_list, required int chat_id, required bool is_pinned, int? extra, int? clientId})
- Changes the pinned state of a chat. There can be up to getOption("pinned_chat_count_max")/getOption("pinned_archived_chat_count_max") pinned non-secret chats and the same number of secret chats in the main/archive chat list. The limit can be increased with Telegram Premium
Properties
- chat_id ↔ int
-
Chat identifier.
read / write
- chat_list ↔ ChatList
-
Chat list in which to change the pinned state of the chat.
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
- is_pinned ↔ bool
-
Pass true to pin the chat; pass false to unpin it.
read / write
- 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) → ToggleChatIsPinned? -
Construct from Map.
override
Constants
- CONSTRUCTOR → const String
-
@type
"toggleChatIsPinned"