PinChatMessage class

Pins a message in a chat; requires can_pin_messages rights or can_edit_messages rights in the channel.

Returns Ok.

Inheritance
Available Extensions

Constructors

PinChatMessage({required int chat_id, required int message_id, required bool disable_notification, required bool only_for_self, int? extra, int? clientId})
Pins a message in a chat; requires can_pin_messages rights or can_edit_messages rights in the channel

Properties

chat_id int
Identifier of the chat.
read / write
clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
disable_notification bool
Pass true to disable notification about the pinned message. Notifications are always disabled in channels and private chats.
read / write
extra int?
Request identifier. Must be non-zero.
read / writeoverride
hashCode int
The hash code for this object.
read-onlyinherited
message_id int
Identifier of the new pinned message.
read / write
only_for_self bool
Pass true to pin the message only for self; private chats only.
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) PinChatMessage?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"pinChatMessage"