Module tdlight.api

Class TdApi.CreateForumTopic

Enclosing class:
TdApi

public static final class TdApi.CreateForumTopic extends TdApi.Function<TdApi.ForumTopicInfo>
Creates a topic in a forum supergroup chat; requires canManageTopics rights in the supergroup. Returns ForumTopicInfo
  • Field Details

    • chatId

      public long chatId
      Identifier of the chat.
    • name

      public String name
      Name of the topic; 1-128 characters.
    • icon

      public TdApi.ForumTopicIcon icon
      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.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • CreateForumTopic

      public CreateForumTopic()
      Creates a topic in a forum supergroup chat; requires canManageTopics rights in the supergroup. Returns ForumTopicInfo
    • CreateForumTopic

      public CreateForumTopic(long chatId, String name, TdApi.ForumTopicIcon icon)
      Creates a topic in a forum supergroup chat; requires canManageTopics rights in the supergroup. Returns ForumTopicInfo
      Parameters:
      chatId - long Identifier of the chat.
      name - String Name of the topic; 1-128 characters.
      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.
    • CreateForumTopic

      public CreateForumTopic(DataInput input) throws IOException
      Creates a topic in a forum supergroup chat; requires canManageTopics rights in the supergroup. Returns ForumTopicInfo
      Throws:
      IOException
  • Method Details