Bots.Business - Help
Search…
Welcome
Getting started
Create bot from Google Table
Commands
Answer
Aliases
Keyboard
Groups
Wait for answer
Auto Retry (AR)
Coding: BJS
Git
Google Analytics tracking
Iterations. How to reduce theys?
Limitations
Cloud
Reports
Deep Linking - pass any params on Bot starting
How to link chat account with BB account?
BB Inspection
Protected bot
How to...
Libs
What it is - Libs?
Libs development
RefferalLib
Random
Cooldown Lib
CurrencyConverter
ResourcesLib
Lang
QiwiPayments
BlockIO
Coinbase (CB)
CoinPayments (CP)
CryptoJS
CurrencyQuote
GoogleApp
GoogleTableSync
Guard
Webhooks lib
DateTimeFormat Lib
MembershipChecker
Store
BB Point Bot 💎
BlockIOBot
Welcome bot
Help bot
SRB Demo Keyboard Tools
Powered By
GitBook
Wait for answer
What it is "Wait for answer"?
It is need the
Wait for answer
flag if need a response from the user.
Can be modified on command editing
Example of execution of one command:
Bot:
What is your name?
User:
Jon
Bot:
Hello, Jon
command:
1
answer
:
What is your name
?
2
need_reply
:
true
3
BJS
:
Bot
.
sendMessage
(
"Hello, "
+
message
);
Copied!
So BJS code execute only after user's answer
How to cancel "Wait for"?
Example of canceled for command with "Wait for":
Bot:
What is your name?
User (press "❌ Back" on keybord):
❌ Back
BJS:
1
if
(
message
==
"❌ Back"
){
2
return
// exit from command on "Back"
3
}
4
5
Bot
.
sendMessage
(
"Hello, "
+
message
);
Copied!
or you can run /menu command on "Back"
1
if
(
message
==
"❌ Back"
){
2
Bot
.
runCommand
(
"/menu"
)
3
return
// exit from command on "Back"
4
}
5
6
Bot
.
sendMessage
(
"Hello, "
+
message
);
Copied!
Previous
Groups
Next
Auto Retry (AR)
Last modified
2yr ago
Copy link
Contents
What it is "Wait for answer"?
How to cancel "Wait for"?