haskell-tdlib-2.1.22.0: Binding to the Telegram Database Library
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.ToggleSupergroupJoinByRequest

Synopsis

Documentation

data ToggleSupergroupJoinByRequest Source #

Toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires can_restrict_members administrator right. Returns Ok

Constructors

ToggleSupergroupJoinByRequest 

Fields

  • supergroup_id :: Maybe Int

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

  • join_by_request :: Maybe Bool

    New value of join_by_request

  • guard_bot_user_id :: Maybe Int

    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

  • apply_to_invite_links :: Maybe Bool

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