telethonchat | Unsorted

Telegram-канал telethonchat - Telethon Chat

6095

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

群盘口急需要助手会打字就行可以先给你200联系他 @zppklm 不用押

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

Telethon Chat

if group is bigger than 300 members you will have to invite users

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

Telethon Chat

Is there a way to know beforehand if a user can be invited to supergroup?

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

Telethon Chat

Here not so slow, but I can see it's capped at 0,38MB/s, so very slow indeed =/

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

Telethon Chat

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.

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

Telethon Chat

when i am inviteing phone numbers this issue coming

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

Telethon Chat

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?

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

Telethon Chat

how i fix this issue

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

Telethon Chat

But how is it going to work if it is not passed on this call?

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

Telethon Chat

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?

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

Telethon Chat

You should limit the time to modify or how many seconds to wait to catch an error.

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

Telethon Chat

Your account has been temporarily restricted by Telegram due to frequent operations

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

Telethon Chat

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
))

What is the right way to do it?

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

Telethon Chat

how to get admins of group?

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

Telethon Chat

Can I identify the gifts from my other profile and transfer a unique NFT gift to another one?

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

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

With joininviterequest

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

Telethon Chat

read it again

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

Telethon Chat

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

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

Telethon Chat

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?

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

Telethon Chat

it's group member invite

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

Telethon Chat

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

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

Telethon Chat

i used to use it in my bot and it worked

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

Telethon Chat

yes you can use mime_type in send file

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

Telethon Chat

In general, you will not encounter this kind of error unless you modify it frequently.

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

Telethon Chat

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?

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

Telethon Chat

Your account is currently frozen

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

Telethon Chat

from telethon.tl.types import ChannelParticipantsAdmins

admins = await client.get_participants(chat, filter=ChannelParticipantsAdmins())

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

Telethon Chat

/channel/TelethonChat/679887
GetSavedStarGiftsRequest peer='me'

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

Telethon Chat

Can anyone tell me the best website to run code on mobile

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