Telegram client unable to be used on replit

Bug description:
It would appear there is some kind of issue with replit and telegram, I am unable to utilize telethon sync telegramclient on replit servers anymore, they work fine locally on my machine.

Expected vs Current Behavior:
Telegram is unable to sync with telegram client

Steps to reproduce:
from telethon.sync import TelegramClient
async with TelegramClient(‘Blank’, api_id, api_hash) as client:

this will stop here.

Bug appears at this link: https://replit.com/@HuwHillman/BlankContractsFilter

Screenshot(s)/Screen Recording:

Browser/OS/Device: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36

Replit Profile: https://replit.com/@HuwHillman

2 Likes

The repl link returns 404. I assume it’s private.

Yes, not much to see,

min repo should just be the stops to reporduce.

Yeah, me too have this error. Admins please check.

I am using pyrogram to run bots, which also uses Telegram’s mtproto like telethon make connection.

I have the same problem too.
Please fix the bug.

Hey @HuwHillman!

What is the expected behavior of the code you shared? You noted that the code will stop after the async with... code, but what should happen if nothing were to go wrong?

I’m going to merge this post into here as it appears to be the same issue: Pyrogram network issue