EditForumTopic class final
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
-
- Object
- TdFunction<
Ok> - EditForumTopic
Constructors
- EditForumTopic({required int chatId, required int messageThreadId, required String name, required bool editIconCustomEmoji, required int iconCustomEmojiId})
-
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
const
Properties
- canBeCalledSynchronously → bool
-
Whether TDLib documents this request as callable through
td_execute.no setterinherited - chatId → int
-
Identifier of the chat
final
- editIconCustomEmoji → bool
-
Pass true to edit the icon of the topic. Icon of the General topic can't be edited
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconCustomEmojiId → int
-
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
final
- messageThreadId → int
-
Message thread identifier of the forum topic
final
- name → String
-
New name of the topic; 0-128 characters. If empty, the previous topic name is kept
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{int? chatId, int? messageThreadId, String? name, bool? editIconCustomEmoji, int? iconCustomEmojiId}) → EditForumTopic -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib function name, e.g.
getMe.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
Converts this request to TDLib JSON, tagged with
extraif given.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.