Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

how i can skip Please enter your phone (or bot token)?

$
0
0

I have several telegram accounts, and at startup, some are asked to enter data. How can I skip this input so that the script continues to run?

my example is not working

for f in glob.iglob("*.session"):  # generator, search immediate subdirectories      print(f.rsplit('.', 1)[0])      name_file = f.rsplit('.', 1)[0]      try:        client = TelegramClient(session=name_file, api_id=api_id, api_hash=api_hash)        await send_mes_to_users(client)      except errors.rpcerrorlist.PhoneNumberInvalidError:         print('fail session')         continue

Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>