fix(core): allow removing caption when editing
This commit is contained in:
parent
53b9ea8840
commit
e22571b7c1
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ export async function editMessage(
|
|||
}
|
||||
}
|
||||
|
||||
if (params.text) {
|
||||
if (params.text !== undefined) {
|
||||
[content, entities] = await _normalizeInputText(client, params.text)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue