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:
commit
ebfba49a8f
@ -180,12 +180,12 @@ def handle_docs_audio(message):
|
|||||||
def handle_message(message):
|
def handle_message(message):
|
||||||
pass
|
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'])
|
@bot.message_handler(func=lambda message: message.document.mime_type == 'text/plain', content_types=['document'])
|
||||||
def handle_text_doc(message):
|
def handle_text_doc(message):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
#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/plain'
|
return message.document.mime_type == 'text/plain'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user