[Telegram] Improved sending to a particular chat section (#8733)

* Improved send to a particular chat section

I specified that the chatId in the APIs must be followed by an "L" or it won't work (at least, not for group chats).
I also mentioned that you can store the chatId inside a variable so that you can write it only once for the entire rules file.

* Update README.md
This commit is contained in:
FrancescoRisso 2020-10-16 19:05:15 +02:00 committed by GitHub
parent 655766056a
commit a33e995109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,7 +155,7 @@ These actions will send a message to all chat ids configured for this bot.
### Actions to send messages to a particular chat
Just put the chat id (must be a long value!) as the first argument to one of the above mentioned APIs:
Just put the chat id (must be a long value!) followed by an "L" as the first argument to one of the above mentioned APIs:
```
telegramAction.sendTelegram(1234567L, "Hello world!")