fix(core): allow removing caption when editing

This commit is contained in:
alina 🌸 2024-07-01 00:35:03 +03:00
parent 53b9ea8840
commit e22571b7c1
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
2 changed files with 2 additions and 2 deletions

View file

@ -77,7 +77,7 @@ export async function editInlineMessage(
if ('caption' in params.media && params.media.caption !== undefined) {
[content, entities] = await _normalizeInputText(client, params.media.caption)
}
} else if (params.text) {
} else if (params.text !== undefined) {
[content, entities] = await _normalizeInputText(client, params.text)
}

View file

@ -95,7 +95,7 @@ export async function editMessage(
}
}
if (params.text) {
if (params.text !== undefined) {
[content, entities] = await _normalizeInputText(client, params.text)
}