telethonchat | Unsorted

Telegram-канал telethonchat - Telethon Chat

6095

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

Subscribe to a channel

Telethon Chat

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

Читать полностью…

Telethon Chat

That's not related with Telethon

Читать полностью…

Telethon Chat

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

Читать полностью…

Telethon Chat

Not really for all I know there could be some other way of inferring file type

Читать полностью…

Telethon Chat

Just set a name to forexample .name attribute, it'll accept.

Читать полностью…

Telethon Chat

Oh I was dealing with a corrupted file

Читать полностью…

Telethon Chat

I don't know what the problem is

Читать полностью…

Telethon Chat

use event.get_sender() or get_entity

Читать полностью…

Telethon Chat

@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)}")

Читать полностью…

Telethon Chat

@client.on(events.NewMessage())
async def mmm(event):
print(event.stringify())
# result = await InputPeerUser()
settings = await client(GetPeerSettingsRequest(event.chat_id))
print(settings.settings)

Читать полностью…

Telethon Chat

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.

Читать полностью…

Telethon Chat

how to get this in telethon?
help pls

Читать полностью…

Telethon Chat

i don't think they have group but make sure the issue is in telethon if you want to ask here

Читать полностью…

Telethon Chat

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.

Читать полностью…

Telethon Chat

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?

Читать полностью…

Telethon Chat

https://github.com/sliva0/tgradish/blob/master/src/tgradish/spoofer.py

Читать полностью…

Telethon Chat

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.

Читать полностью…

Telethon Chat

?
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

Читать полностью…

Telethon Chat

That's not 'Telethon' related bro, try reading python documentation

Читать полностью…

Telethon Chat

What attribute do I specify for bytes to be sent as an image with wrapping in BytesIO and giving it a filename

Читать полностью…

Telethon Chat

In memory bytes has to be wrapped in BytesIO first?

Читать полностью…

Telethon Chat

worked.
so thanks

Читать полностью…

Telethon Chat

nice
let me test

Читать полностью…

Telethon Chat

i think it have bug. chat_id not even works
i tried with get_entity not works too

Читать полностью…

Telethon Chat

yes its my second account

Читать полностью…

Telethon Chat

/channel/TelethonChat/670860

Читать полностью…

Telethon Chat

make sure id is valid and not outdated or already answered

Читать полностью…

Telethon Chat

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?

Читать полностью…

Telethon Chat

is the download speed for user accounts hardcapped at like 50mbps at most? (even with cryptg installed or even using the gist script)

Читать полностью…

Telethon Chat

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

Читать полностью…
Subscribe to a channel