Skip to content

miniproto.client.Client.sign_in_bot

sign_in_bot(token: str) -> object

Authorize the client as a bot and synchronize updates when enabled.

Parameters:

  • token (str) – BotFather-issued bearer token.

Returns:

  • object – Telegram’s authorization result.
Security

The token is retained in memory for auxiliary bot download sessions; callers must keep it secret.