python-telegram-bot/telegram
Marco Fincato a0cd6e8fef
Add Filters.caption_regex (#2163)
* Check caption in Filters.regex

Added regex matching for message caption in Filters.regex.

* Moved caption check to Filters.caption_regex

* Added caption_regex tests

The same as for regex, with only the content of the message changed, that is now inside caption.

* Fixed pre-commit tests

Lines too long and an additional blank line

* Moved line break to comply

* Reformatted code with black

* Added docstrings
2020-11-04 20:54:24 +01:00
..
ext Add Filters.caption_regex (#2163) 2020-11-04 20:54:24 +01:00
files Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
games Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
inline Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
passport Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
payment Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
utils Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
vendor Revert accitendtal change in vendored urllib3 (#1775) 2020-03-28 12:15:51 +01:00
__init__.py Switch Code Formatting to Black (#2122) 2020-10-09 17:22:07 +02:00
__main__.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
base.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
bot.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
botcommand.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
callbackquery.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
chat.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
chataction.py Improve Type Hinting for Class Variables (#2136) 2020-10-15 18:50:47 +02:00
chatmember.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
chatpermissions.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
choseninlineresult.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
constants.py Add Convenience Properties for Service Chats and Anonymous Admins (#2147) 2020-10-18 16:15:56 +02:00
dice.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
error.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
forcereply.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
keyboardbutton.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
keyboardbuttonpolltype.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
loginurl.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
message.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
messageentity.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
parsemode.py Improve Type Hinting for Class Variables (#2136) 2020-10-15 18:50:47 +02:00
poll.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
py.typed Comply with PEP561 (#2168) 2020-11-01 19:33:01 +01:00
replykeyboardmarkup.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
replykeyboardremove.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
replymarkup.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
update.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
user.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
userprofilephotos.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
version.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00
webhookinfo.py Improve Code Quality (#2131) 2020-10-31 16:33:34 +01:00