python and entity cache are major memory consumers
If RAM is a big issue for you, you should consider switching to another language, perhaps C++ with tdlib
i converted my php http api based bot to telethon bot
my bot have many groups so it sends massive amount of packets to server
how to fix this issue?
Hej guys, have one case where iter_messages don't work correctly with search,
as you can see last message exactly like search pattern, but it can't be found by iter_message for some reason.
ca'nt figure out why...
you can print the return to see what attributes it has.
edit_permissions isn't specific to ban, so it is unrealistic to make it return a message object, unlike a kick_participant
I just knew that only kick_participant method will return the message of announcement of kicking ( if kick happens , else it returns an empty dictionary... )
Читать полностью…Thank you!
One more question then, where does the cache flush after in-memory entity cache limit reached when I use string session? The question arose because I get logs like
2024-09-10 23:39:45,197 - INFO - In-memory entity cache limit reached (5000/5000), flushing to session
2024-09-10 23:39:45,210 - INFO - In-memory entity cache at 197/5000 after flushing to session
either add time.sleep(seconds) or except errors.FloodWaitError as e:
print(f"Flood wait for {e.seconds} seconds")
time.sleep(e.seconds)
it happens in case when I delete some message by that pattern, then post it again with another "reply_to", then itter can't find that new message.... Is there are some "cache" what itter massage uses or something like this?
Читать полностью…Just don't use telethon if business mode is crucial to you, telethon will have issue if bot and bussines account dc_id mismatches.. if you're assured it won't, then do UploadMedia to right connection id, as:
SendMediaRequest(Читать полностью…
...,
media=await client(
UploadMediaRequest(
'me', (await client._file_to_media(file))[1], event.connection_id
)
)
)
how can i know i won from stars giveaway in telegram ( like i need that object which comes as message from telegram) in telethon
Читать полностью…Anyone know how to solve this problem?
Sending media using "InvokeWithBusinessConnectionRequest
".
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.
Anybody can help me
My issue => am using a telephone based script for increasing view but last 4 days am facing a issue my bot speed very low on day time it's giving in 1 mint 2 to 3 post view only and night time it's giving 30 to 35 post in a mint everything same pc script all but day time not getting speed please anybody help me on this
hi can someone help me!
why my contacts don't sync with telegram!!?
I enabled sync contacts and telegram have permission to see contacts