Class EditForumTopic


public class EditForumTopic extends AbstractBaseRequest<EditForumTopic,Boolean>
EditForumTopic class. Returns True on sucsess.
Since:
3 March 2025
See Also:
  • Constructor Details

    • EditForumTopic

      public EditForumTopic(Object chatId, int messageThreadId, Api api)
      Required
      Parameters:
      chatId - chat id
      messageThreadId - message thread id
      api - api
  • Method Details

    • name

      public EditForumTopic name(String name)
      Optional
      Parameters:
      name - New topic name, 0-128 characters. If not specified or empty, the current name of the topic will be kept
      Returns:
      EditForumTopic
    • iconCustomEmojiId

      public EditForumTopic iconCustomEmojiId(String iconCustomEmojiId)
      Optional
      Parameters:
      iconCustomEmojiId - New unique identifier of the custom emoji shown as the topic icon. Use BotContext.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
      Returns:
      EditForumTopic