Same as documented, total_timeout applies to the whole conversation session, starting from async with block. timeout applies per-action starting with any await to conversation methods like get_response and the rest
Читать полностью…Sorry my calculations was off I tried to check for speed per second but im bad at math, i updated the code and I'm getting 10 MB/s also i thought i was downloading 300mb file but it was 3gb so i thought it was slow sorry again
Читать полностью…Does telethon have a utility to determine if a message contains voice or video, etc.?
Читать полностью…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.
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.
So if i do this and while sleeping some new dialog is added or new message arrived in last dialog then I might miss out on newly added dialog or I might get the dialog again?
Читать полностью…Telethon is free software. That means using it is a right: you are free to use it for absolutely any purpose whatsoever. However, help and support with using it is a privilege. If you misbehave or want to do bad things, despite possibly having good intentions, nobody is obligated to help you.
Читать полностью…hi How to identify the username on the site Fragment-ton Is it for sale?
For example, I want to be a half user
@art Identify if this username is for sale or not
Has anyone written a code for this problem or is this not possible??
guys, hi, I know how to get the device_token from the phone, but does anyone know how to get it through teleton?
Читать полностью…Make some system of decorators to patch the description to callback objects and command being the name of the function. then make requests of setBotCommands according to it by iterating client.list_event_handlers
Читать полностью…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.
hey
is it possible to get recommended channels (similar channels) in telethon v1.30?
Hello! Why if I get for example 5 queries very fast, And very fast give upload image as answer I get Uploading file **** in console. But messages with uploaded files appears only when all inbound queries stopped
So log file looks like
Input message
Uploading answer file
Input message
Uploading answer file
Input message
Uploading answer file
Uploading answer file done
Uploading answer file done
Uploading answer file done
And messages appears in chat
Im using await on every function call
It looks line Telethon will upload files, but not post any message with this files inside until all OnMessage event routines are finished
I'd like to set commands but they're are kinda of a lot and having to set commands and descriptions is a bit tedious
Читать полностью…Dialogs list order is not a reliable thing. it's just the way you see it in your app, too rapid to be consistent
Читать полностью…last_dialog = NoneЧитать полностью…
while True:
if last_dialog:
last_dialog = get_dialogs(limit=1, offset_peer = last_dialog)
else:
last_dialog = get_dialogs(limit=1)
time.sleep(60 * 60 * 10)
It's not published yet, you can probably use it like: poetry add git+https://github.com/LonamiWebs/Telethon.git#v2#subdirectory=client
poetry add --editable git+https://github.com/LonamiWebs/Telethon.git#v2#subdirectory=generator