public static class TdApi.CreateForumTopic extends TdApi.Function<TdApi.ForumTopicInfo>
Returns ForumTopicInfo
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
Identifier of the chat.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.ForumTopicIcon |
icon
Icon of the topic.
|
java.lang.String |
name
Name of the topic; 1-128 characters.
|
| Constructor and Description |
|---|
CreateForumTopic()
Default constructor for a function, which creates a topic in a forum supergroup chat; requires canManageTopics administrator or canCreateTopics member right in the supergroup.
|
CreateForumTopic(long chatId,
java.lang.String name,
TdApi.ForumTopicIcon icon)
Creates a function, which creates a topic in a forum supergroup chat; requires canManageTopics administrator or canCreateTopics member right in the supergroup.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public java.lang.String name
public TdApi.ForumTopicIcon icon
public static final int CONSTRUCTOR
public CreateForumTopic()
Returns ForumTopicInfo
public CreateForumTopic(long chatId,
java.lang.String name,
TdApi.ForumTopicIcon icon)
Returns ForumTopicInfo
chatId - Identifier 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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object