EditForumTopic class
Edits title and icon of a topic in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup unless the user is creator of the topic.
Returns Ok.
- Inheritance
- Available Extensions
Constructors
- EditForumTopic({required int chat_id, required int message_thread_id, String? name, required bool edit_icon_custom_emoji, required int64 icon_custom_emoji_id, int? extra, int? clientId})
- Edits title and icon of a topic in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup unless the user is creator of the topic
Properties
- chat_id ↔ int
-
Identifier of the chat.
read / write
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- edit_icon_custom_emoji ↔ bool
-
Pass true to edit the icon of the topic. Icon of the General topic can't be edited.
read / write
- extra ↔ int?
-
Request identifier. Must be non-zero.
read / writeoverride
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- icon_custom_emoji_id ↔ int64
-
Identifier of the new custom emoji for topic icon; pass 0 to remove the custom emoji. Ignored if edit_icon_custom_emoji is false. Telegram Premium users can use any custom emoji, other users can use only a custom emoji returned by getForumTopicDefaultIcons.
; string representation of int, use
int.parse
read / write - message_thread_id ↔ int
-
Message thread identifier of the forum topic.
read / write
- name ↔ String?
-
New name of the topic; 0-128 characters. If empty, the previous topic name is kept.
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) → EditForumTopic? -
Construct from Map.
override
Constants
- CONSTRUCTOR → const String
-
@type
"editForumTopic"