Пример кода который использую
from telethon import TelegramClient, sync
import myhelper
import socks
from telethon.tl.types import PeerUser, PeerChat, PeerChannel
config_f = myhelper.open_yaml('config.yaml')
client = TelegramClient("my_sessia", config_f["id"], config_f["hash"])
client.start()
client.connect()
print(client.get_entity((615435914)))
использую такие версии:
Telethon==1.1.1
Telethon-sync==1.0.4
пишет ошибку:
ValueError: Could not find the input entity for "615435914". Please read https://telethon.readthedocs.io/en/latest/extra/ba... to find out more details.