User Tools

Site Tools


send_notifications

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
send_notifications [2021/02/12 14:52] – ↷ Links adapted because of a move operation atolstovsend_notifications [2023/10/02 11:37] (current) – [SendSMS(phone_number, message)] emozolyak
Line 2: Line 2:
  
 ==== SendSMS(phone_number, message) ==== ==== SendSMS(phone_number, message) ====
 +<WRAP center round alert 60%>
 +Starting September 1, 2023, support for sending messages has been discontinued. Please use SendTelegramMsg function instead.
 +</WRAP>
 +
 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://docs.webhmi.com.ua/introduction_to_level2 | Level2]] system and a positive balance in it. The service is paid. 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://docs.webhmi.com.ua/introduction_to_level2 | Level2]] system and a positive balance in it. The service is paid.
  
Line 29: Line 33:
 Example: Example:
  
-{{ :telegram_screenshot.png?direct&400 |}}+{{ network:telegram_screenshot.png?direct&400 |}}
  
 +<wrap em>Please refer for the __[[current_alerts|example]]__ of this function on Lua scripts.</wrap>
 ==== SendViberMessage(chatId, message) ==== ==== SendViberMessage(chatId, message) ====
 The SendViberMessage function sends a message with the text 'message' to the chat with Id = **chatId**. Returns 1 if an error occurred and 0 if successful.  The SendViberMessage function sends a message with the text 'message' to the chat with Id = **chatId**. Returns 1 if an error occurred and 0 if successful. 
Line 36: Line 41:
 To get ChatId, go to [[http://viber.com/webhmi]] on your mobile phone (having previously installed Viber), click 'Have a look' button. To get ChatId, go to [[http://viber.com/webhmi]] on your mobile phone (having previously installed Viber), click 'Have a look' button.
  
-{{ :viber_1.png?direct&400 |}}+{{ network:viber_1.png?direct&400 |}}
  
 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.
  
-{{ :viber_2.png?direct&400 |}}+{{ network:viber_2.png?direct&400 |}}
  
 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.
  
-{{ :viber_3.png?direct&400 |}}+{{ network:viber_3.png?direct&400 |}}
send_notifications.txt · Last modified: 2023/10/02 11:37 by emozolyak

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki