- Enclosing class:
- TdApi
Creates a topic in a forum supergroup
chat; requires canManageTopics rights
in the supergroup.
Returns
ForumTopicInfo
-
Field Summary
Modifier and TypeFieldDescriptionlong
Identifier of the chat.static final int
Icon of the topic.Name of the topic; 1-128 characters. -
Constructor Summary
ConstructorDescriptionCreates a topic in a forum supergroup chat; requires canManageTopics rights in the supergroup.CreateForumTopic
(long chatId, String name, TdApi.ForumTopicIcon icon) Creates a topic in a forum supergroup chat; requires canManageTopics rights in the supergroup.CreateForumTopic
(DataInput input) Creates a topic in a forum supergroup chat; requires canManageTopics rights in the supergroup. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdIdentifier of the chat. -
name
Name of the topic; 1-128 characters. -
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. ReturnsForumTopicInfo
-
CreateForumTopic
Creates a topic in a forum supergroup chat; requires canManageTopics rights in the supergroup. ReturnsForumTopicInfo
- 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
Creates a topic in a forum supergroup chat; requires canManageTopics rights in the supergroup. ReturnsForumTopicInfo
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-