Unique identifier of the forum topic
Unique identifier for this chat
Unique identifier for this
Unique identifier for this chat
Color of the topic icon in RGB format
OptionaliconUnique identifier of the custom emoji shown as the topic icon
Name of the topic
Unique identifier of the forum topic
The client that instantiated this
Protected_Protected_ProtectedPatches the current instance with new data
The data to patch the instance with
The patched data
Protected_ProtectedUpdates the current instance with new data and returns a clone of the updated instance
The data to update the instance with
A clone of the updated instance
Use this method to close an open topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights, unless it is the creator of the topic.
Returns True on success.
Use this method to delete a forum topic along with all its messages in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_delete_messages administrator rights.
Returns True on success.
Use this method to edit name and icon of a topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have can_manage_topics administrator rights, unless it is the creator of the topic.
Optionaloptions: { customEmojiId?: string; name?: string }Options for edited forum topic.
OptionalcustomEmojiId?: stringNew unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers. Pass an empty string to remove the icon. If not specified, the current icon will be kept
Optionalname?: stringNew topic name, 0-128 characters. If not specified or empty, the current name of the topic will be kept
Returns True on success.
Use this method to reopen a closed topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights, unless it is the creator of the topic.
Returns True on success.
Flatten an object. Any properties that are collections will get converted to an array of keys.
OptionalpropsRecursive: booleanOptional. If true, calls toJSON method on nested objects.
Optional. Specific properties to include/exclude, or rename.
Flattened object.
Use this method to clear the list of pinned messages in a chat. In private chats and channel direct messages chats, no additional rights are required to unpin all pinned messages. Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to unpin all pinned messages in groups and channels respectively.
Returns True on success.
Returns the id instance Chat, User, ChatMember and other
The client that instantiated this