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

Merge pull request #761 from Lin-Buo-Ren/patch-3

Fix missing padding space in code sample comments in README
This commit is contained in:
Badiboy 2020-02-27 11:45:59 +03:00 committed by GitHub
commit ebfba49a8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,12 +180,12 @@ def handle_docs_audio(message):
def handle_message(message):
pass
#Handles all messages for which the lambda returns True
# Handles all messages for which the lambda returns True
@bot.message_handler(func=lambda message: message.document.mime_type == 'text/plain', content_types=['document'])
def handle_text_doc(message):
pass
#Which could also be defined as:
# Which could also be defined as:
def test_message(message):
return message.document.mime_type == 'text/plain'