Skip to content

miniproto.auth.service.AuthService.sign_in_bot

miniproto.auth.service.AuthService.sign_in_bot

Section titled “miniproto.auth.service.AuthService.sign_in_bot”
sign_in_bot(token: str) -> object

Authorize a bot token and persist the authenticated bot identity.

Parameters:

  • token (str) – Bot authorization token supplied by BotFather.

Returns:

  • object – The successful Telegram authorization object.

Raises:

  • RpcError – If Telegram does not return an authorization object.