(text: string)
| 1680 | } |
| 1681 | |
| 1682 | const edit = async (text: string) => { |
| 1683 | try { |
| 1684 | await client.editMessage(message.peerId, { |
| 1685 | message: message.id, |
| 1686 | text, |
| 1687 | parseMode: "html", |
| 1688 | linkPreview: false |
| 1689 | }); |
| 1690 | } catch (e: any) { |
| 1691 | if (String(e).includes("Could not find the input entity")) { |
| 1692 | try { await message.reply({ message: text, parseMode: "html", linkPreview: false }); } catch {} |
| 1693 | } else { |
| 1694 | throw e; |
| 1695 | } |
| 1696 | } |
| 1697 | }; |
| 1698 | |
| 1699 | try { |
| 1700 | switch (command) { |
no test coverage detected