Advertisement
Guest User

Untitled

a guest
Dec 15th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.67 KB | None | 0 0
  1. import telegram
  2. from telegram.ext import Updater, CommandHandler
  3. update_id = None
  4.  
  5. def hello(update, context):
  6.     global bot
  7.     bot.createNewStickerSet(user_id = 115178271,
  8.                    name = 'neuroji_by_neuroji_bot',
  9.                    title = 'Neuroji',
  10.                    png_sticker = 'https://upload.wikimedia.org/wikipedia/commons/6/63/Icon_Bird_512x512.png',
  11.                    emojis = '🤖')    
  12.     update.message.reply_text('Stickerpack added')
  13.  
  14.  
  15. bot = telegram.Bot('YOUR TOKEN HERE') #FIXME
  16. updater = Updater(bot = bot, use_context=True)
  17.  
  18. updater.dispatcher.add_handler(CommandHandler('hello', hello))
  19.  
  20. updater.start_polling()
  21. updater.idle()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement