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:
commit
2b7e9a6180
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user