From f8d562ab942fa5bb07308f0d9a137cb7e2026e4e Mon Sep 17 00:00:00 2001 From: graynk Date: Sat, 12 Jun 2021 16:00:34 +0500 Subject: [PATCH] added quote=True parameter, bumped dependencies with setting only direct deps --- bot.py | 8 +++++--- requirements.txt | 40 ++++------------------------------------ 2 files changed, 9 insertions(+), 39 deletions(-) diff --git a/bot.py b/bot.py index 0ad9483..7a8f44e 100644 --- a/bot.py +++ b/bot.py @@ -46,7 +46,8 @@ def transcribe_with_langcode(update: Update, context: CallbackContext) -> None: message_text = transcribe(file_name, to_gs, lang_code=message.text) if message_text == '': - update.effective_message.reply_text('Welp. Transcription results are still empty, but we tried, right?') + update.effective_message.reply_text('Welp. Transcription results are still empty, but we tried, right?', + quote=True) return update.effective_message.reply_text(message_text) @@ -60,9 +61,10 @@ def voice_to_text(update: Update, context: CallbackContext) -> None: if message_text == '': update.effective_message.reply_text('Transcription results are empty. You can try setting language manually by ' - 'replying to the voice message with the language code like ru-RU or en-US') + 'replying to the voice message with the language code like ru-RU or en-US', + quote=True) return - update.effective_message.reply_text(message_text) + update.effective_message.reply_text(message_text, quote=True) def ping_me(update: Update, context: CallbackContext) -> None: diff --git a/requirements.txt b/requirements.txt index ff167e6..91232e0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,36 +1,4 @@ -APScheduler==3.6.3 -cachetools==4.2.1 -certifi==2020.12.5 -cffi==1.14.5 -chardet==4.0.0 -google-api-core==1.26.0 -google-auth==1.27.0 -google-cloud-core==1.6.0 -google-cloud-speech==2.0.1 -google-cloud-storage==1.36.0 -google-crc32c==1.1.2 -google-resumable-media==1.2.0 -googleapis-common-protos==1.52.0 -grpcio==1.35.0 -idna==2.10 -libcst==0.3.17 -mypy-extensions==0.4.3 -packaging==20.9 -proto-plus==1.13.0 -protobuf==3.15.1 -pyasn1==0.4.8 -pyasn1-modules==0.2.8 -pycparser==2.20 -pymediainfo==5.0.3 -pyparsing==2.4.7 -python-telegram-bot==13.3 -pytz==2021.1 -PyYAML==5.4.1 -requests==2.25.1 -rsa==4.7.1 -six==1.15.0 -tornado==6.1 -typing-extensions==3.7.4.3 -typing-inspect==0.6.0 -tzlocal==2.1 -urllib3==1.26.4 +google-cloud-speech==2.4.0 +google-cloud-storage==1.38.0 +pymediainfo==5.1.0 +python-telegram-bot==13.6 \ No newline at end of file