Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import telebot,sys
- BOT_TOKEN=‘CHAVE_DO_TELEGRAM'
- DESTINATION=sys.argv[1]
- SUBJECT=sys.argv[2]
- MESSAGE=sys.argv[3]
- MESSAGE = MESSAGE.replace('/n','\n')
- tb = telebot.TeleBot(BOT_TOKEN)
- tb.send_message(DESTINATION,SUBJECT + '\n' + MESSAGE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement