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

Always try to email Telegram after getting banned, and never appoint to get help

But there's a beauty in chances, and you likely wanna try...

I tried either, and Idk did that cause one of my accounts to get unbanned and recovery or what else, but it worked anyway.

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

Telethon Chat

Damn that sucks, that was my favorite alt

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

Telethon Chat

depends on which location the gift is currently, and what you're willing to do with it

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

Telethon Chat

This is probably an old problem.
entities = self._mb_entity_cache.get_all_entities()

Returns an array of objects without the name, username attributes, then the username, name fields were reset in the orm::process_entities method. So far, I have improved the process_entities method and added verification of the transmitted data.

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

Telethon Chat

Hello every one

I continue debug problem with set NULL for attribute username, phone, name

I'm forked repository:
https://github.com/tulir/telethon-session-sqlalchemy


Debug method (parent telethon memory.py):


def _entity_values_to_row(self, id: int, hash: int, username: str, phone: str, name: str
) -> Any:
print(f"ORM:: _ENTITY_VALUES_TO_ROW. ID: {id}, HASH: {hash}, USERNAME: {username}, PHONE: {phone}, NAME: {name}")

return self.Entity(session_id=self.session_id, id=id, hash=hash, username=username, phone=phone, name=name)


And I see log before call client.disconnect():


ORM:: _ENTITY_VALUES_TO_ROW. ID: -1001634932777, HASH: 8240622244700762656, USERNAME: None, PHONE: None, NAME: <some name>
ORM:: _ENTITY_VALUES_TO_ROW. ID: -1002218550381, HASH: -6230714375329686792, USERNAME: None, PHONE: None, NAME: <some name>
ORM:: _ENTITY_VALUES_TO_ROW. ID: 136817688, HASH: 5289202305167059743, USERNAME: <some username>, PHONE: None, NAME: <some name>
ORM:: _ENTITY_VALUES_TO_ROW. ID: 5847030718, HASH: -6765206636774223826, USERNAME: <some username>, PHONE: <some phone>, NAME: <some name>


<some name>, <some phone>, <some name> - real data, hidden

And after call client.disconnect():


ORM:: _ENTITY_VALUES_TO_ROW. ID: -1001634932777, HASH: 8240622244700762656, USERNAME: None, PHONE: None, NAME: None
ORM:: _ENTITY_VALUES_TO_ROW. ID: -1002218550381, HASH: -6230714375329686792, USERNAME: None, PHONE: None, NAME: None
ORM:: _ENTITY_VALUES_TO_ROW. ID: 5847030718, HASH: -6765206636774223826, USERNAME: None, PHONE: None, NAME: None
ORM:: _ENTITY_VALUES_TO_ROW. ID: 136817688, HASH: 5289202305167059743, USERNAME: None, PHONE: None, NAME: None



I don't understand why None is set, it resets all values in the database, if I disable client.disconnect, then the problem goes away.

I'm usage sync client telethon, maybe that problem?

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

Telethon Chat

TL Reference for ImportChatInvite

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

Telethon Chat

Recently I got hit by FLOOD_WAIT_3. Everytime it's 3-4 seconds.

I am using getChannelDifference from many months, it was working fine without flood waits in past and now it suddenly giving flood waits after certain requests(I have already done my calculations through which I don't get that flood wait). I know I should wait for the specified time which I have already implemented. but do anyone have any other work arounds to not thrown by flood waits while using that end point even after sending more ?

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

Telethon Chat

Has telethon been updated with the new reports implemented by telegram?

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

Telethon Chat

Let's say I have 30k stars in my account, now I want to donate 1k stars and a 3-month premium subscription to another person! How do I do this? If possible, please send the document link from the Telegram site because I work with PHP but I didn't find anything on the Telegram site...

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

Telethon Chat

specify harder which one you want. premium purchase hasn't changed /channel/TelethonChat/567661, stars purchase is close /channel/TelethonChat/656059

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

Telethon Chat

I am getting UsernameInvalidError with these usernames:

@vXq27LwPnJkFt
@bFw27JxVtKpLn
@tFw27LpKvXnJq

However, other usernames that were generated the same way are good and were successfully set. I am trying to understaned how to create 100% correct username

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

Telethon Chat

send stars yes but buy stars or premium no

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

Telethon Chat

TL Reference for GetSavedStarGifts

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

Telethon Chat

Hello guys. How can I get my profile gifts? Please help me

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

Telethon Chat

didn't get what do you need clarify it

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

Telethon Chat

Well it could cause that actually...
Np did nothing lol

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

Telethon Chat

Oh okay, I was running the program on several accounts so I wonder why only that one got deleted. Thanks

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

Telethon Chat

It is a bug then, open an issue or pr the improvement

it technically now overrides extra details other than id and access_hash for entities it receives as events, where they get added to message box memory cache, which doesn't store full objects

this happens every 60 seconds too not only in disconnect(), because of that, storing full objects until disconnection or for 60 seconds isn't ideal, maybe improving the _mb_entity_cache to include the extra details too and not use _as_input_peer

but it can cause sync issues since manual method response entities are stored right away unlike event ones, but not that important

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

Telethon Chat

Yes
._.If you meant friendly and without using TelegramClient.__call__ and raw requests, no.

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

Telethon Chat

hello, have web apps been implemented?

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

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

/channel/TelethonChat/658606

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

Telethon Chat

Ask in a php MTProto library chat.

star to star sending is done by emoji gifts only. using InputInvoiceStarGift() with /channel/TelethonChat/645846

star to premium subscription gift is same as above. but with InputInvoicePremiumGiftStars() being inputInvoice object to use. it is unreleased and in master version only.

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

Telethon Chat

first time i knew this i thought it's not possible

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

Telethon Chat

you'll have to ask Telegram.

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

Telethon Chat

How about sending premium?

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

Telethon Chat

then you won't get your answer here

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

Telethon Chat

Hello Is it possible to send and buy Stars or Premium on Telegram with the API? If yes, what library or API is defined for that?

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

Telethon Chat

I need dating site sources or movie streaming site source , worpress or react node application

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

Telethon Chat

I tried,

msg = await event.get_message()

await bot.edit_message(event.chat.id, message=msg.id, text=msg.text + "12", buttons=msg.reply_markup


It gave me same error

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