Skip to content

Commit

Permalink
Update telegram_bot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
revantkumargupta authored Aug 22, 2023
1 parent 2d79834 commit d6c34de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telegram_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def echo_all(message):
# bot.delete_message(message.chat.id, replied.message_id)
if os.path.exists(final_location):
with open(final_location, 'rb') as f:
bot.send_document(message.chat.id, f)
bot.send_audio(message.chat.id, f)
os.remove(final_location)
except KeyboardInterrupt:
exit(1)
Expand Down

0 comments on commit d6c34de

Please sign in to comment.