Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import telegram
- from telegram.ext import Updater, CommandHandler
- update_id = None
- def hello(update, context):
- global bot
- bot.createNewStickerSet(user_id = 115178271,
- name = 'neuroji_by_neuroji_bot',
- title = 'Neuroji',
- png_sticker = 'https://upload.wikimedia.org/wikipedia/commons/6/63/Icon_Bird_512x512.png',
- emojis = '🤖')
- update.message.reply_text('Stickerpack added')
- bot = telegram.Bot('YOUR TOKEN HERE') #FIXME
- updater = Updater(bot = bot, use_context=True)
- updater.dispatcher.add_handler(CommandHandler('hello', hello))
- updater.start_polling()
- updater.idle()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement