User Tools

Site Tools


send_notifications

Differences

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

Link to this comparison view

Next revisionBoth sides next revision
send_notifications [2019/01/09 10:30] – created akuzmuksend_notifications [2021/02/12 14:52] – ↷ Links adapted because of a move operation atolstov
Line 24: Line 24:
  
 ==== SendTelegramMessage(chatId, message) ==== ==== SendTelegramMessage(chatId, message) ====
-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 | Level2]] system. The service is free.+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:introduction_to_level2| Level2]] system. The service is free.
 To get ChatId, go to [[http://telegram.me/webhmibot]] on your mobile phone (by pre-installing Telegram) and start the dialog with bot webhmibot using the /start command. In response you will receive a message with a unique chatId. To get ChatId, go to [[http://telegram.me/webhmibot]] on your mobile phone (by pre-installing Telegram) and start the dialog with bot webhmibot using the /start command. In response you will receive a message with a unique chatId.
  
Line 33: Line 33:
 ==== 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. 
-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 | Level2]] and a positive balance in this system. The service is chargeable. This feature is available starting with firmware version 2.4.4227. +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:introduction_to_level2| Level2]] and a positive balance in this system. The service is chargeable. This feature is available starting with firmware version 2.4.4227. 
 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.
  
send_notifications.txt · Last modified: 2023/10/02 11:37 by emozolyak

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki