send_notifications
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
send_notifications [2019/01/09 10:30] – created akuzmuk | send_notifications [2023/10/02 11:37] (current) – [SendSMS(phone_number, message)] emozolyak | ||
---|---|---|---|
Line 2: | Line 2: | ||
==== SendSMS(phone_number, | ==== SendSMS(phone_number, | ||
+ | <WRAP center round alert 60%> | ||
+ | Starting September 1, 2023, support for sending messages has been discontinued. Please use SendTelegramMsg function instead. | ||
+ | </ | ||
+ | |||
The SendSMS function sends a request to send an SMS to the number **phone_number** with the text **message**. Returns false if an error occurred and true if successful. Success does not mean delivering a message, but only success when creating a query. This function requires an Internet connection, an account in [[http:// | The SendSMS function sends a request to send an SMS to the number **phone_number** with the text **message**. Returns false if an error occurred and true if successful. Success does not mean delivering a message, but only success when creating a query. This function requires an Internet connection, an account in [[http:// | ||
Line 24: | Line 28: | ||
==== 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.1547029809.txt.gz · Last modified: 2019/01/09 10:30 by akuzmuk