如何将按钮中的文本换行到多行?

How to wrap text in button to multiple lines?

在基于 telegraf 的电报机器人中,我想将文本换行。现在它只显示了一部分。

这是一个 client-side 限制,不幸的是,你现在不能这样做:(

您可以向Telegram Supporter提出建议。

您可以使用

将文本换行
import textwrap
InlineKeyboardButton(textwrap.fill(answer)