Telegram Bot API

Use this method to change the access settings of a managed bot. Returns True on success.

post/setManagedBotAccessSettings

Request

  • Base URL: https://api.telegram.org/bot<bot_token>
  • URL: https://api.telegram.org/bot<bot_token>/setManagedBotAccessSettings
  • Auth: none declared

Request body

user_idinteger required

User identifier of the managed bot whose access settings will be changed

is_access_restrictedboolean required

Pass True, if only selected users can access the bot. The bot's owner can always access it.

added_user_idsinteger[]

A JSON-serialized list of up to 10 identifiers of users who will have access to the bot in addition to its owner. Ignored if is_access_restricted is false.

Response

Telegram API response

oktrue required
resulttrue required

Changes

No recorded changes to this operation across all 3 revisions of this API.