1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

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

View File

@ -181,7 +181,7 @@ def handle_text_doc(message):
#Which could also be defined as: #Which could also be defined as:
def test_message(message): 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']) @bot.message_handler(func=test_message, content_types=['document'])
def handle_text_doc(message) def handle_text_doc(message)