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

Merge pull request #293 from MonsterDeveloper/patch-1

Fixed typo: from plan to plain
This commit is contained in:
FrankWang 2017-02-10 15:33:03 +08:00 committed by GitHub
commit 2b7e9a6180

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)