Fixed typo: from plan to plain

Line 184: from `return message.document.mime_type == 'text/plan'` to `return message.document.mime_type == 'text/plain'`
This commit is contained in:
Andrew 2017-02-09 16:49:15 +03:00 committed by GitHub
parent a356c9a325
commit a84c0b984b
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ def handle_text_doc(message):
#Which could also be defined as:
def test_message(message):
return message.document.mime_type == 'text/plan'
return message.document.mime_type == 'text/plain'
@bot.message_handler(func=test_message, content_types=['document'])
def handle_text_doc(message)