Skip to content

Commit

Permalink
text filter to ignore non-lang codes replies
Browse files Browse the repository at this point in the history
  • Loading branch information
graynk committed Jun 12, 2021
1 parent a2d5705 commit d2c951b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def download_and_prep(file_name: str, message: Message, voice: Voice) -> bool:
if __name__ == '__main__':
start_handler = CommandHandler('start', start)
voice_handler = MessageHandler(Filters.voice & DateFilter(), voice_to_text, run_async=True)
language_handler = MessageHandler(Filters.reply & DateFilter(), transcribe_with_langcode, run_async=True)
language_handler = MessageHandler(Filters.reply & Filters.text & DateFilter(), transcribe_with_langcode, run_async=True)

dispatcher.add_handler(start_handler)
dispatcher.add_handler(voice_handler)
Expand Down

0 comments on commit d2c951b

Please sign in to comment.