Do I understand correctly that this code, in case of a buffer error like mine (404), should exit the function and complete the reconnect cycle?
If the _recv_loop function is completed, will there be any more reconnection attempts, or should the task be completely completed? Maybe I can look for a reconnection cycle somewhere else.
I've been struggling with this error for a very long time, I don't even know what to do, I was even ready to get inside the library, but there is a code to disable it, but for some reason it doesn't work
Читать полностью…telegram is very likely not happy with the fact a single server is hosting that many accounts
Читать полностью…Hi and welcome to the group. Before asking any questions, please read the rules from the group's description, and don't forget to read the docs. Make sure you are using the latest version with pip3 install -U telethon
, since most problems have already been fixed in newer versions.
which means you can't. pass decending list of message ids to client.delete_messages based on latest id, if it's in a supergroup/channel.
Читать полностью…Hi! Does anyone know of any repository on GitHub or any ready-made solution that combines Teleton with FastAPI? I’m looking for a way to interact with Teleton functions through an API without writing code for each request manually. Ideally, I’d like to leverage existing solutions for integration.
Thanks in advance for your help!
and that get_messages fetches the second argument count of messages of the chat. pass the message id to ids= argument if it's id
Читать полностью…chat = await client.get_entity(command_parts[1])
await client.edit_message(event.chat_id, event.id, f"Get Message Text\n\n{await client.get_messages(chat, int(command_parts[2]))}")
i'm willing to explain parts of the code, but as i said don't have time to actually debug the problem myself. paid or not makes no difference on my lack of time
Читать полностью…Well, I'm not bothered by the error itself, I'm bothered by the fact that the reconnection cycle does not end if it occurs
Читать полностью…Hi, I'm making a chat automation program for businesses where users upload their accounts themselves. My entire log is flooded with error 404, and until I restart the process - reconnection continues to run in a loop, although there should be a disconnect in the library in this case, why is that? At the same time, if I disable auto_reconnect, there is no such problem, otherwise hundreds of thousands of error lines accumulate due to one account and are very annoying + load the server with a constant cycle. I wanted to make corrections to the library myself, but it turns out that there is already such a handler, only it does not work.
Part of my log: https://pastebin.com/EVC78DdP
The part of the code where the connection should be closed in case of a 404 error (Telethon): https://pastebin.com/L73PvHAU
Telethon==1.37.0
I can't access the channel. I can connect to mine, I want to start by just outputting the quantity, I have subscribed to the channel, but the history I understand is the privilege of the owner?
Читать полностью…Hi
I have a video file that failed uploading do to duration (is 1:51:46)
Is file type is Matroska data (mkv?) but is extension was mp4 and unigram managed to upload it
I have other videos with duration longer then the hour 50 with type "ISO Media, MP4 Base Media v1" that uploaded ok
I notice some telegram clients cant run the streaming video without downloading all of it
Guys .hi, here is such a task appeared, we need to download history from the channel optov, premium channel. channel is someone else's, the person needs to restore all the video, access he lost. In manual mode 835 video download is difficult.
Читать полностью…await client.get_peer_id()
utils.get_peer_id()
I used to try iter_messages and message.delete but it occurred the error that I cannot iterate messages as a bot
Читать полностью…