Guest User

Untitled

a guest
Oct 20th, 2017
22
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/python
  2.  
  3. import telegram
  4. from telegram.ext import CommandHandler
  5. from telegram.ext import MessageHandler, Filters
  6. from telegram.ext import Updater
  7.  
  8. import argparse
  9.  
  10. parser = argparse.ArgumentParser(description='chatid and message')
  11. requiredNamed = parser.add_argument_group('required named arguments')
  12. requiredNamed.add_argument('-i', help='chatid', required=False,metavar='')
  13. requiredNamed.add_argument('-m', help='message', required=False,metavar='')
  14. args = parser.parse_args()
  15. updater = Updater(token='APKIKEY')
  16. updater.bot.send_message(chat_id=args.i, text=args.m)
  17. updater.stop()
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×