Skip to content

How can I know my telegram-cli account is blocked or not authorized? #133

@ghost

Description

Hello. Here is a code snippet I use in my project:

tg = Telegram(telegram='/home/tg/bin/telegram-cli', pubkey_file='/home/tg/tg-server.pub', port=9600)
sender = tg.sender

Can I somehow check is my telegram-cli account is blocked or not authorized when I create tg or call sender.execute_function(...) method by catching some exception for example?

Component Version
python 3.6.3
pytg   0.4.10
OS     Linux 4.13.0-38-generic #43-Ubuntu SMP x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions