peyk.platforms.telegram.methods.set_managed_bot_access_settings¶
- async peyk.platforms.telegram.methods.set_managed_bot_access_settings(self, user_id: int | None = None, is_access_restricted: bool | None = None, *, added_user_ids: List[int] | None = None, chat_id: int | None = None) bool¶
Use this method to change the access settings of a managed bot. Returns True on success.
- Parameters:
user_id – User identifier of the managed bot whose access settings will be changed
is_access_restricted – Pass True if only selected users can access the bot. The bot’s owner can always access it.
added_user_ids – 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.
chat_id – Value accepted by this operation.
- Returns:
Result returned by Telegram on successful execution.
- Return type:
bool