~boringcactus/crabravebot

1d7b7edcf64b9a7ba3f2e5a00d55f607ef77e83d — Melody Horn 3 years ago 0b634e2
a few tiny things
1 files changed, 2 insertions(+), 1 deletions(-)

M bot.py
M bot.py => bot.py +2 -1
@@ 179,6 179,7 @@ WEBHOOK = '/webhook/' + TOKEN
@app.route(WEBHOOK, methods=['POST'])
def webhook():
    update_queue.put(telegram.Update.de_json(request.get_json(), bot))
    return 'ok'


bot = telegram.Bot(token=TOKEN)


@@ 188,7 189,7 @@ dp = Dispatcher(bot, update_queue, use_context=True)
# Add handlers
dp.add_handler(CommandHandler('start', start))
dp.add_handler(InlineQueryHandler(inline_query))
dp.add_handler(MessageHandler(Filters.all, message))
dp.add_handler(MessageHandler(Filters.text, message))

thread = Thread(target=dp.start, name='dispatcher')
thread.start()