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 |
Hello. Here is a code snippet I use in my project:
Can I somehow check is my telegram-cli account is blocked or not authorized when I create
tgor callsender.execute_function(...)method by catching some exception for example?3.6.30.4.10Linux 4.13.0-38-generic #43-Ubuntu SMP x86_64 GNU/Linux