Advertisement
Guest User

cursozabbix

a guest
Sep 21st, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. import telebot,sys
  4.  
  5. BOT_TOKEN=‘CHAVE_DO_TELEGRAM'
  6. DESTINATION=sys.argv[1]
  7. SUBJECT=sys.argv[2]
  8. MESSAGE=sys.argv[3]
  9.  
  10. MESSAGE = MESSAGE.replace('/n','\n')
  11.  
  12. tb = telebot.TeleBot(BOT_TOKEN)
  13. tb.send_message(DESTINATION,SUBJECT + '\n' + MESSAGE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement