pechorka / adhd-reader

2 stars 0 forks source link

Stability. Checking for file format. Return error if it's not .txt. #18

Closed AAKrasnova closed 1 year ago

AAKrasnova commented 1 year ago

Currently, the bot can handle only .txt files and telegram messages as its input.

When trying to give .pdf as an input bot says "Text is not in UTF-8 encoding" image

It's not the correct reason to put user input down, so we need to add more clarity. We need to check the file format and the new error message: Unsupported file format. Please input .txt file or send a message. We currently do not support other file formats.

pechorka commented 1 year ago

Added file type check