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
if group is bigger than 300 members you will have to invite users
Читать полностью…Is there a way to know beforehand if a user can be invited to supergroup?
Читать полностью…Here not so slow, but I can see it's capped at 0,38MB/s, so very slow indeed =/
Читать полностью…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.
when i am inviteing phone numbers this issue coming
Читать полностью…when we can upgrade gift without paying stars upgrade_stars will be 0 or None? i think it will be None if gift refunded right?
Читать полностью…But how is it going to work if it is not passed on this call?
Читать полностью…I was wondering... the send_file() doesn't have mime_type, but does have a **kwargs, but when this functions calls _file_to_media() there isn't a kwargs nor mime_type, but the _file_to_media() supports it. Why is that this way? How can I use the send_file() with mime_type?
Читать полностью…You should limit the time to modify or how many seconds to wait to catch an error.
Читать полностью…Your account has been temporarily restricted by Telegram due to frequent operations
Читать полностью…Hello, I`m trying to update profile first_name, about, last_name with following code, yet I receive:
telethon.errors.rpcbaseerrors.FloodError: RPCError 420: FROZEN_METHOD_INVALID (caused by UpdateProfileRequest)
await client(functions.account.UpdateProfileRequest(
first_name=first_name,
last_name=None,
about=about
))
if about:
await client(functions.account.UpdateProfileRequest(
about=about
))
Can I identify the gifts from my other profile and transfer a unique NFT gift to another one?
Читать полностью…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.
Pretty sure I already have cryptg, but I should really dissect that snippet, yeah
But it was running fine a couple months back, for some years now
This might be tricky to answer, but I'm seeing some really bad telegram speeds lately on media upload and message send, and I've been chasing this and that fruitlessly.
So,
Question 1) Is anyone else seeing much slower media upload on Telegram lately (last few weeks, or last month) for bots? I'm not getting any `FloodWaitError`s back or anything, it's just slow. Taking about 10 seconds to upload a 200kb file and stuff.
And then, a more complex Q2..
Question 2) As I'm juggling various async/await stuff and trying to get things off critical paths and optimise performance, I found myself wondering whether the MTProto protocol itself is actually async at all? Can it actually do multiple things at once, or does Telethon just provide the async functionality by queuing things up underneath?
For example, if I have 2 async tasks uploading media to Telegram in a loop, will that go any faster than using 1 task uploading media in a loop? Or is there simply only the 1 socket or whatever to send it through?
My guess would be that MTProto is 1 socket to send it through, but Telethon will be juggling sending a block of a media file from task A, then a block of a media file from task B, until every block of each media file is uploaded and stuff, is that right?
you must be member in group to pass link to get entity (don't work with bots)
you can't invite this user because he haven't met the bot before
and your account flooded
In general, you will not encounter this kind of error unless you modify it frequently.
Читать полностью…should I handle FloodError exception separately from FloodWaitError to catch such cases when an account gets not just flood wait for some seconds, but a restriction like this?
Читать полностью…from telethon.tl.types import ChannelParticipantsAdmins
admins = await client.get_participants(chat, filter=ChannelParticipantsAdmins())
/channel/TelethonChat/679887
GetSavedStarGiftsRequest peer='me'
Can anyone tell me the best website to run code on mobile
Читать полностью…