get_bot_default_privileges()#
- Client.get_bot_default_privileges()[source]#
Get the current default privileges of the bot.
Usable by Users Bots- Parameters:
for_channels (
bool, optional) – Pass True to get default privileges of the bot in channels. Otherwise, default privileges of the bot for groups and supergroups will be returned.- Returns:
bool– On success, True is returned.- Raises:
RPCError – In case of a Telegram RPC error.
Example
privileges = await app.get_bot_default_privileges()