mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fixed CallbackQuery.answer() returns nothing (#420)
This commit is contained in:
parent
17eb8a56d0
commit
9ab2945267
1 changed files with 5 additions and 2 deletions
|
|
@ -54,8 +54,11 @@ class CallbackQuery(base.TelegramObject):
|
|||
:type cache_time: :obj:`typing.Union[base.Integer, None]`
|
||||
:return: On success, True is returned.
|
||||
:rtype: :obj:`base.Boolean`"""
|
||||
await self.bot.answer_callback_query(callback_query_id=self.id, text=text,
|
||||
show_alert=show_alert, url=url, cache_time=cache_time)
|
||||
return await self.bot.answer_callback_query(callback_query_id=self.id,
|
||||
text=text,
|
||||
show_alert=show_alert,
|
||||
url=url,
|
||||
cache_time=cache_time)
|
||||
|
||||
def __hash__(self):
|
||||
return hash(self.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue