title: How to send message from zabbix to telegram?
body: <p>I have problems with notifications on zabbix to telegram messenger.
  So, I specified different guides for that. But not successful.</p>
  
  <p>For example I use this  <a href="http://tobias.ws/blog/zabbix-com-notificacoes-pelo-telegram/" rel="nofollow">guides</a> </p>
  
  <p>This solutions works for bash. But I can send this from zabbix.</p>
  
  <pre><code>export to=$1;
  export subject=$2;
  export body=$3;
  
  
  tgpath=/usr/src/tg/zabbix
  cd ${tgpath}
  (sleep 5; echo "msg $to $subject $body"; echo "safe_quit") | 
  ${tgpath}/telegram-cli -k /etc/telegram-cli/mykey.pub -W 
  </code></pre>
  
  <p>Key <code>telegram-cli -e</code> does not work correctly with a login name and with format <code>user#XXXXXX;</code></p>
  
  <p>I dont want to use some  API to send message.</p>
  
  <p>Thank you for any help.</p>