Always running commands
Master command
All Updates
Example
// you can track any message here
if(message&&chat){
Bot.sendMessage("Sorry, bot don't have this command: " + message);
return
}
// you can see all updated data by:
// Bot.inspect(request);
if(request.edit_date){
// user edited message
Bot.sendMessage("Text edited to:" + request.new_text);
// Please note:
// we have request.new_text not request.text here
// for backward compatibility
// request.text will be nil!
}
// chat title changed
if(request.new_chat_title){
Bot.sendMessage("New chat title is:" + request.new_chat_title);
}
// another possible updates in:
// https://core.telegram.org/bots/api#messageBeforeAll and AfterAll commands
Last updated