library does that already
No, you need to get the entities everytime you start the script
Wrong, all encountered entity's data is saved to the .session file, unless you're using StringSession or disconnecting properly.
hi. how i can fix this error? Fatal error handling updates (this is a bug in Telethon v1.28.5, please report it)Traceback (most recent call last): File "C:\Users\mwcreator\A...
I am trying to deploy this simple telethon script on AWS Lambda (Serverless) that listens for incoming messages in a private telegram channel and stores the same in a DynamoDB...
import telethon from telethon.tl.functions.messages import GetMessagesViewsRequest from telethon import TelegramClient # Remember to use your own api_id = my id here api_has...
hello Who could to explain how to add message hander in multi thread bot? i have this code, and he is working accounts = tuple(TelegramClient(StringSession(x.strip()), api_id...
I want to test out Telethon v2 but I'm unable to fetch it what is the issue? (I ran the command within a new venv for it) >>> pip install --upgrade "telethon~=2.0" ERROR: Coul...
File "/home/tgcleaning/TGCleaner/bot/helper/__init__.py", line 248, in kick_user await self.client.kick_participant(entity=chat_id, File "/home/tgcleaning/TGCleaner/vir...
hi this code telethon app = TelegramClient('bot', de1, de2).start(bot_token=de3) with app: @app.on( events.NewMessage( outgoing=True, pattern=r"/start")) async def h(eve...
Guys, hello! I have a question: Using the python REQUESTS library, you can make it so that by means of a POST telegram request the bot will send a message to a specific user T...
Hello. Recently, I needed to get information about the channel from the forward of its post to the bot. In the past, I made telegram bots in js with the Telegraf library and a...
does anyone know how to get a InputPeerUser from a MessageEntityMention? I can get a User with client.get_entity(text) but I can't seem to get the input entity because of a mi...
Обсуждают сегодня