我在 php 上有 Telegram Bot 代码,并通过 replyWithMessage
方法发送回复消息。
这里的所有命令:
$this->replyWithMessage(['text' => $item['title']. "\n\n" . $url]);
如何在文本前添加一些预览图像?
最佳答案
您可以使用 /sendphoto
并设置显示在图像下方的 caption
。
https://core.telegram.org/bots/api#sendphoto
关于php - 在带有图像的 Telegram Bot 中发送消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37860889/