Skip to content Skip to sidebar Skip to footer

Singing In Telegramclient Telethon

After running the code, I try to enter a password (but I don’t have it) and can’t enter anything. I use VS Code Please enter your phone (or bot token): 79622222693 Please ente

Solution 1:

from telethon.sync import TelegramClient

api_id = 0
api_hash = ''

with TelegramClient('sessi1onname', api_id, api_hash) as client:
    client.get_messages('me', "telethon sign in success")

use this code and then check your Saved Messages in telegram. will work for you. way you are trying is not sync!


Post a Comment for "Singing In Telegramclient Telethon"