BotMate
Search
⌃K
💬

Conversations

BotMate uses Grammy's conversation API.
To create a command that uses conversation, follow the given step -

Step 1

Create a command with the following content:
await Ctx.conversation.enter("name");

Step 2

Create conversation with the name name and paste the following script:
​
await Ctx.reply("What is your name?");
const nameCtx = await conversation.waitFor(":text");
await Ctx.reply("Hi, " + nameCtx.message.text);
Now save and restart your bot.
Don't forget to use await
​