~boringcactus/crabravebot

254e4b7b2675bbd11142006154b7ab97fd27349e — Melody Horn 3 years ago 6f4472a
only activate on DMs
1 files changed, 4 insertions(+), 3 deletions(-)

M bot.py
M bot.py => bot.py +4 -3
@@ 177,11 177,12 @@ def inline_query(update: telegram.Update, context: CallbackContext):


def message(update: telegram.Update, context: CallbackContext):
    text = update.effective_message.text
    if update.effective_chat.type == telegram.Chat.PRIVATE:
        text = update.effective_message.text

    logger.info('Got query %s', text)
        logger.info('Got query %s', text)

    update.effective_message.reply_video(BytesIO(make_video(text, STYLES[0].id)))
        update.effective_message.reply_video(BytesIO(make_video(text, 'classic')))


@app.route('/')