Official Telethon's chat! Rules: • Speak English • Stay on topic (questions about Telethon) • Be respectful • Don't ask to ask • Spam-related uses lead to ban • Read https://docs.telethon.dev before asking things here Read more about us @TelethonUpdates
Speed is up to server. based on datacenter the files live in
as long as you're premium, that's the fastest it will get
Hi, I am making a service in docker to upload and download files from a private group that I use to store my personal documents (not bot).
I'm having a problem and when I try to download files, it seems that the download speed is limited and Telethon gives me a timeout of 2 seconds, can this be avoided? Right now I am downloading these documents at a speed of 5mb/s, for uploading documents for example I reach 20-25mb/s without any problem. (i use cryptg)
I opened a thread on StackOverflow where I show the code I have: https://stackoverflow.com/questions/79685175/download-speed-limited-to-approx-5mb-s
2025-07-01 21:12:24 - telethon.client.users - INFO - Sleeping for 1s (0:00:01) on GetFileRequest flood waitЧитать полностью…
2025-07-01 21:12:25 - telethon.client.users - INFO - Sleeping for 2s (0:00:02) on GetFileRequest flood wait
Not really for all I know there could be some other way of inferring file type
Читать полностью…Just set a name to forexample .name attribute, it'll accept.
Читать полностью…@client.on(events.NewMessage())Читать полностью…
async def handle_date(event):
me = await client.get_me()
try:
if event.is_private and event.sender_id != me.id:
try:
with open('dates.json', 'r') as f:
data = json.load(f)
except (FileNotFoundError, json.JSONDecodeError):
data = {}
if event.sender_id in data:
return
sender = await event.get_sender()
settings = await client(GetPeerSettingsRequest(sender))
date = settings.settings.registration_month
if date:
data[event.sender_id] = date
with open('dates.json', 'w') as file:
json.dump(data, file, indent=4)
except TypeError:
pass
except Exception as e:
await event.reply(f"Error: {str(e)}")
@client.on(events.NewMessage())Читать полностью…
async def mmm(event):
print(event.stringify())
# result = await InputPeerUser()
settings = await client(GetPeerSettingsRequest(event.chat_id))
print(settings.settings)
ValueError: Could not find the input entity for PeerUser(user_id=5889849770) (PeerUser). Please read https://docs.telethon.dev/en/stable/concepts/entities.html to find out more details.
Читать полностью…i don't think they have group but make sure the issue is in telethon if you want to ask here
Читать полностью…If you want to increase up/down speed, you can install cryptg
via pip.
This module aims to provide a better encryption/decryption algorithm for Telegram clients.
If you want to increase speed even further, you can use this snippet
Be cautious while using it, because it can lead to FloodWait
error, as it uses multiple simultaneous connections.
I'm trying to use a userbot for knowing when a new user joined in a group. It works fine with groups with small number of members but some mega groups with a lots of members, it doesn't capture the chat action event. Is there any way I can do it?
Читать полностью…https://github.com/sliva0/tgradish/blob/master/src/tgradish/spoofer.py
Читать полностью…If you want to increase up/down speed, you can install cryptg
via pip.
This module aims to provide a better encryption/decryption algorithm for Telegram clients.
If you want to increase speed even further, you can use this snippet
Be cautious while using it, because it can lead to FloodWait
error, as it uses multiple simultaneous connections.
?
It's whatever anyways
I decided to check the mime type from buffer using magic
Then generated a filename from current time with the split half from the mime type as extension
That's not 'Telethon' related bro, try reading python documentation
Читать полностью…What attribute do I specify for bytes to be sent as an image with wrapping in BytesIO and giving it a filename
Читать полностью…In memory bytes has to be wrapped in BytesIO first?
Читать полностью…i think it have bug. chat_id
not even works
i tried with get_entity not works too
make sure id is valid and not outdated or already answered
Читать полностью…Hello, I have a bot that prepares the video size for each resolution. Now it does not display any size. This happened recently for no reason. Is there a special group for yt-dlp or i can ask here my code use telethon?
Читать полностью…is the download speed for user accounts hardcapped at like 50mbps at most? (even with cryptg installed or even using the gist script)
Читать полностью…yeah I was just deciding wether to include an api_id and hash (not of my main account oc) in one of the bots or no, it is better to not now
Читать полностью…