ForumTopicCreated constructor

const ForumTopicCreated({
  1. @JsonKey.new(name: 'name') required String name,
  2. @JsonKey.new(name: 'icon_color') required int iconColor,
  3. @JsonKey.new(name: 'icon_custom_emoji_id') String? iconCustomEmojiId,
  4. @JsonKey.new(name: 'is_name_implicit') bool? isNameImplicit,
})

Creates a new ForumTopicCreated object.

Implementation

const factory ForumTopicCreated({
  /// Name of the topic
  @JsonKey(name: 'name') required String name,

  /// Color of the topic icon in RGB format
  @JsonKey(name: 'icon_color') required int iconColor,

  /// Optional. Unique identifier of the custom emoji shown as the topic icon
  @JsonKey(name: 'icon_custom_emoji_id') String? iconCustomEmojiId,

  /// Optional. True, if the name of the topic wasn't specified explicitly by its creator and likely needs to be changed by the bot
  @JsonKey(name: 'is_name_implicit') bool? isNameImplicit,
}) = _ForumTopicCreated;