Package org.drinkless.tdlib
Class TdApi.CreateForumTopic
- Enclosing class:
- TdApi
Creates a topic in a forum supergroup chat or a chat with a bot with topics; requires canManageTopics administrator or canCreateTopics member right in the supergroup.
Returns ForumTopicInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongIdentifier of the chat.static final intIdentifier uniquely determining type of the object.Icon of the topic.booleanPass true if the name of the topic wasn't entered explicitly; for chats with bots only.Name of the topic; 1-128 characters. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which creates a topic in a forum supergroup chat or a chat with a bot with topics; requires canManageTopics administrator or canCreateTopics member right in the supergroup.CreateForumTopic(long chatId, String name, boolean isNameImplicit, TdApi.ForumTopicIcon icon) Creates a function, which creates a topic in a forum supergroup chat or a chat with a bot with topics; requires canManageTopics administrator or canCreateTopics member right in the supergroup. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdIdentifier of the chat. -
name
Name of the topic; 1-128 characters. -
isNameImplicit
public boolean isNameImplicitPass true if the name of the topic wasn't entered explicitly; for chats with bots only. -
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 CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
CreateForumTopic
public CreateForumTopic()Default constructor for a function, which creates a topic in a forum supergroup chat or a chat with a bot with topics; requires canManageTopics administrator or canCreateTopics member right in the supergroup.Returns
ForumTopicInfo -
CreateForumTopic
public CreateForumTopic(long chatId, String name, boolean isNameImplicit, TdApi.ForumTopicIcon icon) Creates a function, which creates a topic in a forum supergroup chat or a chat with a bot with topics; requires canManageTopics administrator or canCreateTopics member right in the supergroup.Returns
ForumTopicInfo- Parameters:
chatId- Identifier of the chat.name- Name of the topic; 1-128 characters.isNameImplicit- Pass true if the name of the topic wasn't entered explicitly; for chats with bots only.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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-