sign_in_bot()
- Client.sign_in_bot()
Authorize a bot using its bot token generated by BotFather.
Usable by Users Bots
- Parameters:
bot_token (
str
) – The bot token generated by BotFather- Returns:
User
– On success, the bot identity is return in form of a user object.- Raises:
BadRequest – In case the bot token is invalid.