Skip to content

Commit

Permalink
added quote=True parameter, bumped dependencies with setting only dir…
Browse files Browse the repository at this point in the history
…ect deps
  • Loading branch information
graynk committed Jun 12, 2021
1 parent 957916f commit f8d562a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 39 deletions.
8 changes: 5 additions & 3 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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:
Expand Down
40 changes: 4 additions & 36 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f8d562a

Please sign in to comment.