Interface ToggleSupergroupJoinByRequest

Toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires can_restrict_members administrator right. Request type for Tdjson#toggleSupergroupJoinByRequest.

interface ToggleSupergroupJoinByRequest {
    @type: "toggleSupergroupJoinByRequest";
    apply_to_invite_links?: boolean;
    guard_bot_user_id: number;
    join_by_request?: boolean;
    supergroup_id: number;
}

Properties

@type: "toggleSupergroupJoinByRequest"
apply_to_invite_links?: boolean

Pass true to apply the change to the existing invite links, including primary links.

guard_bot_user_id: number

Identifier of the bot which will be the guard bot in the group; pass 0 if none; ignored if join_by_request == false. The bot must have administrator privileges and can_invite_users right in the supergroup chat, and must have userTypeBot.is_guard == true.

join_by_request?: boolean

New value of join_by_request.

supergroup_id: number

Identifier of the supergroup that isn't a broadcast group and isn't a channel direct message group.