Skip to content

Commit

Permalink
trying to fix wrong Requester in voice_call
Browse files Browse the repository at this point in the history
  • Loading branch information
rking32 authored May 10, 2021
1 parent 1879d6f commit 91eef5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion userge/plugins/utils/voice_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,17 @@ def volume_button_markup():
async def reply_text(
msg: Message, text: str, markup=None, to_reply: bool = True, del_in: int = -1
) -> Message:
return await msg.client.send_message(
new_msg = await msg.client.send_message(
msg.chat.id,
text,
del_in=del_in,
reply_to_message_id=msg.message_id if to_reply else None,
reply_markup=markup,
disable_web_page_preview=True
)
if to_reply:
new_msg.reply_to_message = msg
return new_msg


async def _init():
Expand Down

0 comments on commit 91eef5a

Please sign in to comment.