CreateForumTopic class

Creates a topic in a forum supergroup chat; requires can_manage_topics rights in the supergroup.

Returns ForumTopicInfo.

Inheritance
Available Extensions

Constructors

CreateForumTopic({required int chat_id, required String name, required ForumTopicIcon icon, int? extra, int? clientId})
Creates a topic in a forum supergroup chat; requires can_manage_topics rights in the supergroup

Properties

chat_id int
Identifier 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
icon ForumTopicIcon
Icon of the topic. Icon color must be one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F. Telegram Premium users can use any custom emoji as topic icon, other users can use only a custom emoji returned by getForumTopicDefaultIcons.
read / write
name String
Name of the topic; 1-128 characters.
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) CreateForumTopic?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"createForumTopic"