V
V
Valery Zhmyshenko2020-08-26 12:51:05
Python
Valery Zhmyshenko, 2020-08-26 12:51:05

How to react to user message in telethon group?

Hello! I'm learning telethon and ran into a problem: how can I reply to a text from a chat (For example: "Hi, human bot!")
I know about the function:

await message.reply('Hi!')

But I don't know how to specify the message variable correctly,
please help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav the Wise, 2020-08-26
@yungtitanium

await event.reply('Some text')
await client.send_message(entity: chat, 'text')

Where entity: chat specify event.chat

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question