ForumTopicInfo class final
Contains basic information about a forum topic
Constructors
- ForumTopicInfo({required int chatId, required int forumTopicId, required String name, required ForumTopicIcon icon, required int creationDate, required MessageSender creatorId, required bool isGeneral, required bool isOutgoing, required bool isClosed, required bool isHidden, required bool isNameImplicit, dynamic extra, int? clientId})
-
Contains basic information about a forum topic
const
-
ForumTopicInfo.fromJson(Map<
String, dynamic> json) -
Parses a ForumTopicInfo from TDLib JSON.
factory
Properties
- chatId → int
-
Identifier of a forum supergroup chat or a chat with a bot to which the topic belongs
final
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
- creationDate → int
-
Point in time (Unix timestamp) when the topic was created
final
- creatorId → MessageSender
-
Identifier of the creator of the topic
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- forumTopicId → int
-
Forum topic identifier of the topic
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → ForumTopicIcon
-
Icon of the topic
final
- isClosed → bool
-
True, if the topic is closed. If the topic is closed, then the user must have can_manage_topics administrator right in the supergroup or must be the creator of the topic to send messages there
final
- isGeneral → bool
-
True, if the topic is the General topic
final
- isHidden → bool
-
True, if the topic is hidden above the topic list and closed; for General topic only
final
- isNameImplicit → bool
-
True, if the name of the topic wasn't added explicitly
final
- isOutgoing → bool
-
True, if the topic was created by the current user
final
- name → String
-
Name of the topic
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{int? chatId, int? forumTopicId, String? name, ForumTopicIcon? icon, int? creationDate, MessageSender? creatorId, bool? isGeneral, bool? isOutgoing, bool? isClosed, bool? isHidden, bool? isNameImplicit, dynamic extra, int? clientId}) → ForumTopicInfo -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
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.