import telegram
import os
import logging

from telegram.ext import *

URL = 'https://brainfuckify.herokuapp.com/'
TOKEN = os.environ['TOKEN']
PORT = int(os.environ['PORT'])

logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO)

updater = Updater(TOKEN)

dispatcher = updater.dispatcher


def start(bot, update):
    bot.send_message(chat_id=update.message.chat_id, text="I'm a bot, please talk to me!")


def message(bot, update):
    bot.send_message(chat_id=update.message.chat_id, text=update.message.text)


dispatcher.add_handler(CommandHandler('start', start))
dispatcher.add_handler(MessageHandler(Filters.text, message))

updater.start_webhook(
    listen="0.0.0.0",
    port=PORT,
    url_path=TOKEN
)

updater.bot.set_webhook(URL + TOKEN)

updater.idle()

@@ -35,16 +35,39 @@
 ogging%0A%0A
+from telegram import *%0A
 from tel
@@ -578,16 +578,395 @@
 text)%0A%0A%0A
+def inline(bot, update):%0A    query = update.inline_query.query%0A    if not query:%0A        return%0A    results = list()%0A    results.append(%0A        InlineQueryResultArticle(%0A            id=query.upper(),%0A            title='Caps',%0A            input_message_content=InputTextMessageContent(query.upper())%0A        )%0A    )%0A    bot.answer_inline_query(update.inline_query.id, results)%0A%0A%0A
 dispatch
@@ -1073,16 +1073,67 @@
 essage))
+%0Adispatcher.add_handler(InlineQueryHandler(inline))
 %0A%0Aupdate

add test inline