Authorize a bot using its bot token generated by BotFather.
- 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.