telethonchat | Unsorted

Telegram-канал telethonchat - Telethon Chat

6097

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

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.

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

Telethon Chat

someone else would need to look into it

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

Telethon Chat

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

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

Telethon Chat

i'm unlikely to look into any such network issues any time soon

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

Telethon Chat

telegram is very likely not happy with the fact a single server is hosting that many accounts

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

Telethon Chat

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.

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

Telethon Chat

I saw lot of group moderation bots that they can and provide.

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

Telethon Chat

It may help git@github.com:p-kyrylo/telegram-scraper.git

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

Telethon Chat

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.

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

Telethon Chat

Documentation for iter_messages

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

Telethon Chat

can make network calls
can't make network calls

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

Telethon Chat

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!

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

Telethon Chat

How can I delete some count of messages in preferred chat

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

Telethon Chat

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

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

Telethon Chat

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

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

Telethon Chat

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

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

Telethon Chat

Can I donate you to solve the problem?

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

Telethon Chat

i don't have the resources to investigate them

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

Telethon Chat

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

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

Telethon Chat

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

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

Telethon Chat

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?

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

Telethon Chat

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

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

Telethon Chat

can i transfer/forward/copy documents to test dc/server?

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

Telethon Chat

Documentation for Message.download_media

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

Telethon Chat

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.

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

Telethon Chat

await client.get_peer_id()
utils.get_peer_id()

What is the difference between the two?

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

Telethon Chat

I used to try iter_messages and message.delete but it occurred the error that I cannot iterate messages as a bot

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

Telethon Chat

I fixed it with using iter_messages

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

Telethon Chat

this is useless, show the full traceback and the variables to a paste site

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

Telethon Chat

Request payload is too big

What is this

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