• Change default chat permissions for all members.

    You must be an administrator in the chat and have appropriate permissions.

    Parameters

    • client: ITelegramClient
    • chatId: InputPeerLike

      Chat ID or username

    • restrictions: Omit<RawChatBannedRights, "_" | "untilDate">

      Restrictions for the chat. Note that unlike Bot API, this object contains the restrictions, and not the permissions, i.e. passing sendMessages=true will disallow the users to send messages, and passing {} (empty object) will lift any restrictions

    Returns Promise<Chat>