Guest User


a guest
Oct 20th, 2017
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/python
  3. import telegram
  4. from telegram.ext import CommandHandler
  5. from telegram.ext import MessageHandler, Filters
  6. from telegram.ext import Updater
  8. import argparse
  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., 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 from fully loading.

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

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