send_notifications
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
send_notifications [2019/01/09 10:30] – created akuzmuk | send_notifications [2022/01/15 00:22] – ↷ Links adapted because of a move operation 127.0.0.1 | ||
---|---|---|---|
Line 24: | Line 24: | ||
==== SendTelegramMessage(chatId, | ==== SendTelegramMessage(chatId, | ||
- | The SendTelegramMessage function sends a message with the text **message** to the chat with Id = **chatId**. Returns 1 if an error occurred and 0 if successful. Success does not mean delivering a message, but only success when creating a query. To use this function, you must have an Internet connection, an account in the [[Introduction to Level2 | + | The SendTelegramMessage function sends a message with the text **message** to the chat with Id = **chatId**. Returns 1 if an error occurred and 0 if successful. Success does not mean delivering a message, but only success when creating a query. To use this function, you must have an Internet connection, an account in the [[level2: |
To get ChatId, go to [[http:// | To get ChatId, go to [[http:// | ||
Example: | Example: | ||
- | {{ : | + | {{ network: |
+ | <wrap em> | ||
==== SendViberMessage(chatId, | ==== SendViberMessage(chatId, | ||
The SendViberMessage function sends a message with the text ' | The SendViberMessage function sends a message with the text ' | ||
- | Success does not mean delivering a message, but only success when creating a query. To use this function, you must have a working Internet connection, an account in the system [[Introduction to Level2 | + | Success does not mean delivering a message, but only success when creating a query. To use this function, you must have a working Internet connection, an account in the system [[level2: |
To get ChatId, go to [[http:// | To get ChatId, go to [[http:// | ||
- | {{ : | + | {{ network: |
You will be taken to the public WebHMI account. Go to the personal messages of the public account by clicking the button at the top right. | You will be taken to the public WebHMI account. Go to the personal messages of the public account by clicking the button at the top right. | ||
- | {{ : | + | {{ network: |
Write any text in the chat. In response you will receive a message with a unique chatId chat ID. | Write any text in the chat. In response you will receive a message with a unique chatId chat ID. | ||
- | {{ : | + | {{ network: |
send_notifications.txt · Last modified: 2023/10/02 11:37 by emozolyak