Skip to content

Instantly share code, notes, and snippets.

import requests
def telegram_bot_sendtext(bot_message):
bot_token = ''
bot_chatID = ''
send_text = 'https://api.telegram.org/bot' + bot_token + '/sendMessage?chat_id=' + bot_chatID + '&parse_mode=Markdown&text=' + bot_message
response = requests.get(send_text)

Keybase proof

I hereby claim:

  • I am gabev on github.
  • I am gabev (https://keybase.io/gabev) on keybase.
  • I have a public key ASDYzZGxC_klAJOxSpXmCD7YDBje2W_OUxriAO2T_B6Uogo

To claim this, I am signing this object:

@gabev
gabev / monitrc
Created February 23, 2018 16:14 — forked from franck/monitrc
monit config file (nginx, mysql, redis, tomcat)
###############################################################################
## Monit control file
###############################################################################
##
## Comments begin with a '#' and extend through the end of the line. Keywords
## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'.
##
## Below you will find examples of some frequently used statements. For
## information about the control file, a complete list of statements and
## options please have a look in the monit manual.