💬
Conversations
BotMate uses Grammy's conversation API.
To create a command that uses conversation, follow the given step -
Create a command with the following content:
await Ctx.conversation.enter("name");
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
Last modified 2mo ago