public static class TdApi.SetChatDiscussionGroup extends TdApi.Function
Returns Ok
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
long |
chatId
Identifier of the channel chat.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
discussionChatId
Identifier of a new channel's discussion group.
|
Constructor and Description |
---|
SetChatDiscussionGroup()
Default constructor for a function, which changes the discussion group of a channel chat; requires canChangeInfo administrator right in the channel if it is specified.
|
SetChatDiscussionGroup(long chatId,
long discussionChatId)
Creates a function, which changes the discussion group of a channel chat; requires canChangeInfo administrator right in the channel if it is specified.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long chatId
public long discussionChatId
public static final int CONSTRUCTOR
public SetChatDiscussionGroup()
Returns Ok
public SetChatDiscussionGroup(long chatId, long discussionChatId)
Returns Ok
chatId
- Identifier of the channel chat. Pass 0 to remove a link from the supergroup passed in the second argument to a linked channel chat (requires canPinMessages rights in the supergroup).discussionChatId
- Identifier of a new channel's discussion group. Use 0 to remove the discussion group. Use the method getSuitableDiscussionChats to find all suitable groups. Basic group chats must be first upgraded to supergroup chats. If new chat members don't have access to old messages in the supergroup, then toggleSupergroupIsAllHistoryAvailable must be used first to change that.public int getConstructor()
getConstructor
in class TdApi.Function