packages.missgram: fix

This commit is contained in:
2025-12-31 08:29:00 +08:00
parent f2e2f34cbf
commit fb7e9156d0
2 changed files with 2 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ int main()
std::string text;
std::optional<std::uint32_t> reply_id;
// 如果是转发,则直接写链接
if (!content.body.note->text)
if (!content.body.note->text && content.body.note->renote)
text = "转发了[帖子]({}/notes/{})"_f(content.server, content.body.note->id);
// 否则(引用或普通帖子)
else

View File

@@ -5,6 +5,7 @@ std::optional<std::int32_t> missgram::tg_send
(std::string text, std::optional<std::int32_t> replyId, std::vector<File> files)
{
using namespace biu::literals;
biu::Logger::Guard log;
// 整理要发送的信息
TgBot::Bot bot(config.TelegramBotToken);