Bot.runCommand(command, options)
Bot.runCommand("/contact")
Bot.runCommand("/contact", {phone: "+15424", email: "[email protected]"})
Bot.run(options)
Bot.clearRunAfter(options)
Bot.runAll(options)
Bot.sendKeyboard(buttons, message)
Bot.sendKeyboard("about, help,\ncontacts", "send keyboard now")
Bot.sendInlineKeyboard(buttons, message)
Bot.sendInlineKeyboard([ {title: "google", url: "http://google.com" }, {title: "other command", command: "/othercommand"} ], "Please make a choice.")
Bot.sendInlineKeyboardToChatWithId(chat_id, buttons, message)
Bot.sendInlineKeyboard('852378745487', [ {title: "google", url: "http://google.com" }, {title: "other command", command: "/othercommand"} ], "Please make a choice.")
Bot.editInlineKeyboard(buttons)
Bot.editInlineKeyboard([ {title: "google", url: "http://google.com" } ])
Bot.editInlineKeyboard(buttons, message_id, chat_id)
Bot.editInlineKeyboard([ {title: "google", url: "http://google.com" } ], request.message.message_id, chat.id)
Bot.setProperty(name, value, type)
Bot.setProperty("TotalScore", 100, "integer")
integer, float, string, text, json, datetime
Bot.getProperty(name)
Bot.getProperty("TotalScore")
Bot.getProperty("TotalScore", 100)
Bot.getProperty({ name: "propName", other_bot_id: OTHER_BOT_ID })
Bot.importCSV()
Bot.blockChat(chat_id)
Bot.blockChat(chat.id)
Bot.unblockChat(chat_id)
Bot.unblockChat(chat.id)
Bot.inspect(value)
You can also use the properties in the command's answer. For example, you can do this with the / hello command:Total score: <TotalScore>!
And you can use it inBot.sendMessage("<TotalScore>")
command
options
run_after
bot_id
user_id
chat_id
label
Bot.clearRunAfter
/balance
with delay 1 hour for current user/balance
with delay 5 days for this userlabel
/work
with delay 5 days. And remove that delay (for example on 3th day)command
options
on_create
for_chats
"private-chats"
"group-chats"
"super-group-chats"
"all"
- default/news
/broadcast
on_new_brodcast_task
/progress