mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-24 16:17:37 +01:00
Bump sphinx
from 5.2.3 to 5.3.0 (#3300)
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com>
This commit is contained in:
parent
6340d6652a
commit
76c2fc1776
4 changed files with 11 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
||||||
sphinx==5.2.3
|
sphinx==5.3.0
|
||||||
sphinx-pypi-upload
|
sphinx-pypi-upload
|
||||||
furo==2022.9.29
|
furo==2022.9.29
|
||||||
sphinx-paramlinks==0.5.4
|
sphinx-paramlinks==0.5.4
|
||||||
|
|
|
@ -115,7 +115,7 @@ def main() -> None:
|
||||||
application = Application.builder().token("TOKEN").build()
|
application = Application.builder().token("TOKEN").build()
|
||||||
|
|
||||||
# More info on what deep linking actually is (read this first if it's unclear to you):
|
# More info on what deep linking actually is (read this first if it's unclear to you):
|
||||||
# https://core.telegram.org/bots#deep-linking
|
# https://core.telegram.org/bots/features#deep-linking
|
||||||
|
|
||||||
# Register a deep-linking handler
|
# Register a deep-linking handler
|
||||||
application.add_handler(
|
application.add_handler(
|
||||||
|
|
|
@ -546,7 +546,8 @@ class CaptionEntity(MessageFilter):
|
||||||
|
|
||||||
class CaptionRegex(MessageFilter):
|
class CaptionRegex(MessageFilter):
|
||||||
"""
|
"""
|
||||||
Filters updates by searching for an occurrence of :paramref:`pattern` in the message caption.
|
Filters updates by searching for an occurrence of :paramref:`~CaptionRegex.pattern` in the
|
||||||
|
message caption.
|
||||||
|
|
||||||
This filter works similarly to :class:`Regex`, with the only exception being that
|
This filter works similarly to :class:`Regex`, with the only exception being that
|
||||||
it applies to the message caption instead of the text.
|
it applies to the message caption instead of the text.
|
||||||
|
@ -1501,7 +1502,8 @@ POLL = _Poll(name="filters.POLL")
|
||||||
|
|
||||||
class Regex(MessageFilter):
|
class Regex(MessageFilter):
|
||||||
"""
|
"""
|
||||||
Filters updates by searching for an occurrence of :paramref:`pattern` in the message text.
|
Filters updates by searching for an occurrence of :paramref:`~Regex.pattern` in the message
|
||||||
|
text.
|
||||||
The :func:`re.search` function is used to determine whether an update should be filtered.
|
The :func:`re.search` function is used to determine whether an update should be filtered.
|
||||||
|
|
||||||
Refer to the documentation of the :obj:`re` module for more information.
|
Refer to the documentation of the :obj:`re` module for more information.
|
||||||
|
|
|
@ -134,10 +134,12 @@ def effective_message_type(entity: Union["Message", "Update"]) -> Optional[str]:
|
||||||
|
|
||||||
def create_deep_linked_url(bot_username: str, payload: str = None, group: bool = False) -> str:
|
def create_deep_linked_url(bot_username: str, payload: str = None, group: bool = False) -> str:
|
||||||
"""
|
"""
|
||||||
Creates a deep-linked URL for this :paramref:`bot_username` with the specified
|
Creates a deep-linked URL for this :paramref:`~create_deep_linked_url.bot_username` with the
|
||||||
:paramref:`payload`. See https://core.telegram.org/bots#deep-linking to learn more.
|
specified :paramref:`~create_deep_linked_url.payload`. See
|
||||||
|
https://core.telegram.org/bots/features#deep-linking to learn more.
|
||||||
|
|
||||||
The :paramref:`payload` may consist of the following characters: ``A-Z, a-z, 0-9, _, -``
|
The :paramref:`~create_deep_linked_url.payload` may consist of the following characters:
|
||||||
|
``A-Z, a-z, 0-9, _, -``
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
Works well in conjunction with
|
Works well in conjunction with
|
||||||
|
|
Loading…
Reference in a new issue