Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def paste(update, context): msg = update.effective_message cht = update.effective_chat if cht.type in [Chat.SUPERGROUP, Chat.GROUP]: pass elif cht.type == 'private': args = context.args query = ' '.join(args) if not args: msg.reply_text('_Masukkan query..._', parse_mode = ParseMode.MARKDOWN) else: load = msg.reply_text('Processing...') try: url = r.get(f'https://fxag-api.herokuapp.com/api/pastebin?apikey=api-free,{query}').json() except Exception as e: context.bot.edit_message_text( chat_id = load.chat_id, message_id = load.message_id, text = e ) res = url['result']['result'] context.bot.edit_message_text( chat_id = load.chat_id, message_id = load.message_id, text = res )
Advertisement
Add Comment
Please, Sign In to add comment