Skip to content

Commit 3226859

Browse files
committed
Wrap long lines
1 parent 4feb255 commit 3226859

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

telegram/ext/callbackqueryhandler.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929

3030
class CallbackQueryHandler(Handler):
3131
"""
32-
Handler class to handle Telegram callback queries. Optionally based on a regex. Read the documentation of the ``re`` module for more information.
32+
Handler class to handle Telegram callback queries. Optionally based on a regex.
33+
Read the documentation of the ``re`` module for more information.
3334
3435
Args:
3536
callback (function): A function that takes ``bot, update`` as
@@ -43,7 +44,8 @@ class CallbackQueryHandler(Handler):
4344
``job_queue`` will be passed to the callback function. It will be a ``JobQueue``
4445
instance created by the ``Updater`` which can be used to schedule new jobs.
4546
Default is ``False``.
46-
pattern (optional[str or Pattern]): Optional regex pattern. If not ``None`` The ``re.match`` function is used to determine if an update should be handled by this handler.
47+
pattern (optional[str or Pattern]): Optional regex pattern. If not ``None`` ``re.match``
48+
is used to determine if an update should be handled by this handler.
4749
pass_groups (optional[bool]): If the callback should be passed the
4850
result of ``re.match(pattern, data).groups()`` as a keyword
4951
argument called ``groups``. Default is ``False``

telegram/ext/inlinequeryhandler.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828

2929
class InlineQueryHandler(Handler):
3030
"""
31-
Handler class to handle Telegram inline queries. Optionally based on a regex. Read the documentation of the ``re`` module for more information.
31+
Handler class to handle Telegram inline queries. Optionally based on a regex. Read the
32+
documentation of the ``re`` module for more information.
3233
3334
Args:
3435
callback (function): A function that takes ``bot, update`` as
@@ -42,7 +43,8 @@ class InlineQueryHandler(Handler):
4243
``job_queue`` will be passed to the callback function. It will be a ``JobQueue``
4344
instance created by the ``Updater`` which can be used to schedule new jobs.
4445
Default is ``False``.
45-
pattern (optional[str or Pattern]): Optional regex pattern. If not ``None`` The ``re.match`` function is used to determine if an update should be handled by this handler.
46+
pattern (optional[str or Pattern]): Optional regex pattern. If not ``None`` ``re.match``
47+
is used to determine if an update should be handled by this handler.
4648
pass_groups (optional[bool]): If the callback should be passed the
4749
result of ``re.match(pattern, query).groups()`` as a keyword
4850
argument called ``groups``. Default is ``False``

0 commit comments

Comments
 (0)