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
Anyone tried to work with ToDo lists?
I have the last Telethon version but I don't receive any update about todo_list service messages.
I receive the todo list polls without issue but not the service messages about them
I use raw but nothing displayed:@client.on(events.Raw())
@error_notifier
async def raw_event(event):
print(f"Raw event: {event.stringify()}")
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've answered it many times, it's generally up to you how you store things. Telethon isn't restricting.
/channel/TelethonChat/634326
/channel/TelethonChat/612970
you can also use the message.file.id for the file_id, as long as you're working with videos/documents. photos need the patch I mentioned above
It's been outdated for long, a bot-api file_id passed to telethon won't work for sending, there are format changes
but a telethon file_id passed to bot-api will work, tdlib has backwards compatibility. tho only documents, it's broken for photos since location and other fields were gone many layers ago, but that too can be patched in some unorthodox method /channel/TelethonChat/641871
after the patch, then yeah, for storing and sending by telethon and bot-api/tdlib will work but not sending by telethon from botapi file_id
why not? there's pack_to / pack_from bot-style file id 🤔
Читать полностью…but it seems upload_file() not has parameter for thumbnail
Читать полностью…layer is unrelated to this. and remove that exception and show the full traceback
Читать полностью…How to send video and photos via file id as album?
Send_file?
Plz
And how to get file id
ResetAuthorizationsRequest is delete all session except the one calling. Is it possible to delete some devices not all?
Читать полностью…Thank you for your help, really appreciate it! But I have one more question: if I also want to speed up my uploading via using upload_file() implemented by https://gist.github.com/painor/7e74de80ae0c819d3e9abcf9989a8dd6 , how can I do that?
Читать полностью…I mean I have an album(5 videos), I send them together in 1 message, how can I set their thumbnails(5 video have different thumbnail)
Читать полностью…How can I send 5 videos in 1 message and set their thumbnail?
Читать полностью…I got FILTER_ID_INVALID last time I tried it, may be I did something wrong, will try it again
Читать полностью…Hey, what is the MTProto API request to create a new folder?
Читать полностью…Hi, i cant get any decent speed downloading big files, i did try with cryptg and FastTelethon but no where need to what i get in desktop
Читать полностью…If I have an Instagram bot that saves files as cache memory on the disk, what should I do to use something like a file ID?
Save in telegram channel then use the link to send them again from channel to user as Album can be?
Sure, I understand now. Thanks for the explanation.
Читать полностью…pass what it returns as the file to _file_to_media
Читать полностью…After updating the layer, I encountered a proxy connection issue. Does anyone know a solution? Everything works on previous layers (e.g., 201/204).
[16:19:52][-] Thread 1: 573132481521 connection error via socks5://1.1.1.1:11000:Rxxx:хххххх_country-co: __init__() takes 2 positional arguments but 3 were givenЧитать полностью…
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.
# Custom thumbnailsЧитать полностью…
await client.send_file(chat, '/my/documents/doc.txt', thumb='photo.jpg')
# Albums
await client.send_file(chat, [
'/my/photos/holiday1.jpg',
'/my/photos/holiday2.jpg',
'/my/drawings/portrait.png'
])
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.