Better demo

This commit is contained in:
Mahdi Dibaiee 2015-06-29 04:22:22 +04:30
parent a8c4c0e33f
commit 75798a1a63
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ const question = new Question({
answers: [['Hey'], ['Hello, Sir'], ['Yo bro']]
});
bot.get(/Hi|Hey|Yo/, message => {
bot.get(/Hi\sBot/, message => {
const id = message.chat.id;
question.to(id).reply(message.message_id);

View File

@ -22,7 +22,7 @@ const question = new Question({
answers: [['Hey'], ['Hello, Sir'], ['Yo bro']]
});
bot.get(/Hi|Hey|Yo/, message => {
bot.get(/Hi\sBot/, message => {
const id = message.chat.id;
question.to(id).reply(message.message_id);