Skip to content

Commit b04869f

Browse files
Eldinnietsnoam
authored andcommitted
docstring correction (python-telegram-bot#775)
[ci skip]
1 parent 70057a6 commit b04869f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

telegram/ext/inlinequeryhandler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class InlineQueryHandler(Handler):
3838
pass_job_queue (:obj:`bool`): Optional. Determines whether ``job_queue`` will be passed to
3939
the callback function.
4040
pattern (:obj:`str` | :obj:`Pattern`): Optional. Regex pattern to test
41-
:attr:`telegram.CallbackQuery.data` against.
41+
:attr:`telegram.InlineQuery.query` against.
4242
pass_groups (:obj:`bool`): Optional. Determines whether ``groups`` will be passed to the
4343
callback function.
4444
pass_groupdict (:obj:`bool`): Optional. Determines whether ``groupdict``. will be passed to
@@ -67,7 +67,7 @@ class InlineQueryHandler(Handler):
6767
:class:`telegram.ext.JobQueue` instance created by the :class:`telegram.ext.Updater`
6868
which can be used to schedule new jobs. Default is ``False``.
6969
pattern (:obj:`str` | :obj:`Pattern`, optional): Regex pattern. If not ``None``,
70-
``re.match`` is used on :attr:`telegram.CallbackQuery.data` to determine if an update
70+
``re.match`` is used on :attr:`telegram.InlineQuery.query` to determine if an update
7171
should be handled by this handler.
7272
pass_groups (:obj:`bool`, optional): If the callback should be passed the result of
7373
``re.match(pattern, data).groups()`` as a keyword argument called ``groups``.

0 commit comments

Comments
 (0)