Fix README message handler table

This commit is contained in:
Pieter van den Ham 2015-09-08 11:29:35 +02:00
parent f9cbcf9b65
commit edf1694606
1 changed files with 1 additions and 0 deletions

View File

@ -140,6 +140,7 @@ def function_name(message):
`function_name` is not bound to any restrictions. Any function name is permitted with message handlers. The function must accept at most one argument, which will be the message that the function must handle.
`filters` is a list of keyword arguments. Each filter must return True for a certain message in order for the message handler to become eligible to handle that message.
TeleBot supports the following filters:
|name|argument(s)|Condition|
|:---:|---| ---|
|content_types|list of strings (default `['text']`)|`True` if message.content_type is in the list of strings.|