fix(client): do not quote simple replies

This commit is contained in:
alina 🌸 2023-11-27 14:05:07 +03:00
parent ba3d02ac94
commit 945872e2fd
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -109,7 +109,7 @@ export async function _processCommonSendParameters(
let peer = await resolvePeer(client, chatId)
let replyTo = normalizeMessageId(params.replyTo)
const replyToPeer = typeof params.replyTo === 'number' ? peer : params.replyTo?.chat.inputPeer
const replyToPeer = typeof params.replyTo === 'number' ? undefined : params.replyTo?.chat.inputPeer
if (params.commentTo) {
[peer, replyTo] = await _getDiscussionMessage(client, peer, normalizeMessageId(params.commentTo)!)