what's 'file' in your code? is it a string path
a gif is automatically converted by server, but now it's not recognized as one, could be your passing is invalid or the file is.
you can enforce it more with attributes=[telethon.types.DocumentAttributeAnimated()]
to send_file
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 does not artificially limit any methods. either the encryption is slow due to python overhead, or telegram is sending flood wait errors, or the problem is the sequential upload used in the library (probably all at once)
Читать полностью…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 did something similar by running both bots and sharing info between them normally
Читать полностью…via @wiki
https://en.wikipedia.org/wiki/Python_(programming_language)
It should send something like this.. ^^
Can it be done?
I know i can send html as message, but is there any way to get message as html? Or i need parse entities to construct html?
Читать полностью…Hello 👋
I got a question about autoplay .gif files.
I sending messages with a .gif file with this function:
await client.send_message(chat, message, file=file, parse_mode='Markdown', link_preview=False)
Now I facing the "problem" that the .gif is playing on pc but not on phones. Does anyone know why? I can imagine that it has todo with the phone-telegram-setting but I know bot messages with gifs that are playing on my phone so it should depend on the way telethon send the file?
First of all, my network is very fast, I am worried that the telethon is limiting the upload rate
Читать полностью…I know about Message.click() , just not about if it can actually read the contents like query's result's titles.. before clicking on them
Читать полностью…Can userbots search inline queries in other bots?
Let's say I have a userbot , that I want to search @wiki , checks the total number of results and then selects the results with the biggest title for a particular query
( obviously my use case is different, but using this as an example )
The issue is most likely not in the interval. Try buying a premium telegram account. After registering a new account and purchasing premium, let it sit for a week so that Telegram does not consider it suspicious
Читать полностью…I set up an auto-posting script using Telethon with a cooldown of about two minutes before repeating. However, my account got deleted. So, I created another account and extended the cooldown to four minutes, but that account got banned too. Now I've lost another one.
What's the solution to use continuous auto-posting without losing my account? I've already lost three accounts.
I've literally tried everything, even randomizing the interval between two to three minutes to avoid Telegram detecting my actions, but it’s still not working
telegram is objecting to your existence, cease to exist and use different network that also matches phone region too. assuming you haven't used any vpn/proxy
Читать полностью…