SetChatDiscussionGroup

public struct SetChatDiscussionGroup : Codable, Equatable, TDFunction

Changes the discussion group of a channel chat; requires can_change_info rights in the channel if it is specified

  • Undocumented

    Declaration

    Swift

    public typealias Result = Ok
  • 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 can_pin_messages rights in the supergroup)

    Declaration

    Swift

    public let chatId: Int53
  • 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 needs to be first upgraded to supergroup chats. If new chat members don’t have access to old messages in the supergroup, then toggleSupergroupIsAllHistoryAvailable needs to be used first to change that

    Declaration

    Swift

    public let discussionChatId: Int53
  • Changes the discussion group of a channel chat; requires can_change_info rights in the channel if it is specified

    Declaration

    Swift

    public init(chatId: Int53, discussionChatId: Int53)

    Parameters

    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 can_pin_messages 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 needs to be first upgraded to supergroup chats. If new chat members don’t have access to old messages in the supergroup, then toggleSupergroupIsAllHistoryAvailable needs to be used first to change that