hello,
Can anyone tell me how to send messages on behalf of the bot?
I specify the bot token when I start the client instance.
bot = TelegramClient('name', api_id, api_hash).start(bot_token='BOT_TOKEN')
await bot.send_message(entity='chat_id', message='test message')
Requests - do you mean about handler like that:
@client.on(events.NewMessage())
Or you are about smth else?
Can you tell yours, which are actually working for you? I just need something to fall back on.
Читать полностью…Hello, please help
What is MessageService? What difference from Message?
What usefull payload could be extracted from this object?
regarding the library (ton-fragment) that you’ve previously suggested, it requires to share the phrase of the wallet to the developer of the sdk to perform kyc-requirec actions (buying premium or stars). I doubt i’ll trust that guy, Is there any alternative library?
Читать полностью…This message only appears when the session is terminated or doesn't exist. Make sure of session validity and be aware of using the same session under 2 different IPs that will terminate it immediately.
Читать полностью…Hello, tell me if it is possible to specify previews for videos that weigh more than 250mb+.
I try this code and the video is sent just as simply with a black screen until I launch it.
message = await self.client.send_file(Читать полностью…
entity=self.database_channel,
file=_test,
thumb='test.jpg',
force_document=False,
attributes=[
DocumentAttributeVideo(duration=duration, w=width, h=height, supports_streaming=True)
],
)
The point is that telegram deleted my account just for that - I was just listening the messages for 1 work day. That’s it. I was using proxy for that as well
Читать полностью…Well, don't spam, don't send requests more than 5 minutes each, practically follow their tos https://core.telegram.org/api/terms
Читать полностью…hello, can someone help me how to get the URL (telegram stores all messages as a link) of the received image, and not download it to the device
Читать полностью…Services messages are those notifications you see in chat when an user joins, leaves etc
Читать полностью…Can you tell me where to read about API work limits via telethon? Specifically the handler monitoring new posts. My account have banned just for tracking new posts in a dozen channels. How can this blocking be eliminated?
Читать полностью…Yes, but there was a fix to mark this session as bad and skip it which as to use async.conect someone told me before but i forget
Читать полностью…