Skip to content

Commit

Permalink
nt
Browse files Browse the repository at this point in the history
  • Loading branch information
jusidama18 committed Dec 17, 2023
1 parent 04d0f60 commit 3deb845
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyromod/listen/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async def ask(
**kwargs,
):
sent_message = None
if text.strip() != "":
if text and isinstance(text, str):
chat_to_ask = chat_id[0] if isinstance(chat_id, list) else chat_id
sent_message = await self.send_message(chat_to_ask, text, *args, **kwargs)

Expand Down
6 changes: 3 additions & 3 deletions pyromod/listen/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ async def wait_for_click(
message_id = getattr(self, "id", getattr(self, "message_id", None))

return await self._client.listen(
listener_type=ListenerTypes.CALLBACK_QUERY,
timeout=timeout,
filters=filters,
timeout=timeout,
listener_type=ListenerTypes.CALLBACK_QUERY,
unallowed_click_alert=alert,
chat_id=self.chat.id,
user_id=from_user_id,
message_id=message_id,
)
)

0 comments on commit 3deb845

Please sign in to comment.