then go to Error Tab and see data. Now you can use it via tgUpdate.xxx.yyy
Example
Command *
// you can track any message hereif(message&&chat){Bot.sendMessage("Sorry, bot don't have this command: "+message);return}// you can see all updated data by:// Bot.inspect(tgUpdate);if(tgUpdate.edited_message?.edit_date){ // user edited messageBot.sendMessage("Text edited to:"+tgUpdate.edited_message.text);}// another possible updates in:// https://core.telegram.org/bots/api#update
BeforeAll and AfterAll commands
Code of this commands executed always before (and after) all others commands codes.
Example. You need add important alert in all commands. You can create only one BeforeAll command with code Bot.sendMessage("Important alert")
For BeforeAll command use @ in command name
For AfterAll command use @@ in command name
Please note. Only BJS for BeforeAll and AfterAll commands runned. No any answer and keyboard here.
You can share functions, variables and etc with BeforeAll and AfterAll commands. It is effective for common code parts.
Please note. If you need *, @, @@ as command names you can use it in aliases