telethon getting input from message

  python, telegram, telethon

i’m making a bot and i need to get an input from message, and i have no idea how to do it.

the chat should look like this.

bot: send x

me: x

bot: send y

me: y 

and saving it in a csv file.

this is the code now:

bot.on(events.CallbackQuery)
async def handler(event):
    if event.data == b"1":  
        await event.respond("x")
        ##code
        await event.respond("x")
        ##code
        await event.respond("x")

Source: Python Questions

LEAVE A COMMENT