Skip to content

feat(import): 增强Telegram JSON导出格式支持#245

Open
ModerRAS wants to merge 5 commits intomasterfrom
issue-81-telegram-json-export
Open

feat(import): 增强Telegram JSON导出格式支持#245
ModerRAS wants to merge 5 commits intomasterfrom
issue-81-telegram-json-export

Conversation

@ModerRAS
Copy link
Copy Markdown
Owner

实现Issue #81 - 增加Telegram官方JSON格式导出历史记录适配

增强功能

  1. 扩展ChatExport模型

    • Video、Voice、VideoNote字段支持
    • Sticker、Contact、Poll、Location模型
    • ForwardedFrom、Reactions、ViaBot字段
    • Caption和Caption_Entities支持
    • 服务消息(Actor、Action)支持
  2. 增强文本提取

    • 支持简单的Text数组(不仅限Text_Entities)
    • 添加贴纸、语音、视频等媒体类型标记
    • 添加投票、联系人、位置等消息类型处理
    • 添加服务消息处理

文件变更

    • 扩展模型定义
    • 增强文本提取逻辑

Fixes #81

Copilot AI and others added 4 commits March 3, 2026 08:33
…e bundle support

- Add EnableLocalBotAPI, TelegramBotApiId, TelegramBotApiHash, LocalBotApiPort to Config/Env
- Auto-set BaseUrl and IsLocalAPI when EnableLocalBotAPI is true
- Launch telegram-bot-api.exe as a ChildProcessManager-managed process in GeneralBootstrap
- Add conditional Content entry for telegram-bot-api.exe in .csproj
- Build telegram-bot-api from source via cmake+vcpkg in GitHub Actions push workflow

Co-authored-by: ModerRAS <28183976+ModerRAS@users.noreply.github.com>
- 扩展ChatExport模型支持更多消息类型
  - 添加Video、Voice、VideoNote字段
  - 添加Sticker、Contact、Poll、Location模型
  - 添加ForwardedFrom、Reactions、ViaBot字段
  - 添加Caption和Caption_Entities支持
  - 添加服务消息(Actor、Action)支持

- 增强ChatImportService文本提取
  - 支持简单的Text数组(不仅限Text_Entities)
  - 添加贴纸、语音、视频等媒体类型标记
  - 添加投票、联系人、位置等消息类型处理
  - 添加服务消息处理

Fixes #81
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 19, 2026

Warning

Rate limit exceeded

@ModerRAS has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 11 minutes and 19 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 50a61109-4891-485d-96c8-d94172c1b0ed

📥 Commits

Reviewing files that changed from the base of the PR and between d68516d and 10ab143.

📒 Files selected for processing (25)
  • .github/workflows/push.yml
  • TelegramSearchBot.Common/Attributes/McpAttributes.cs
  • TelegramSearchBot.Common/Env.cs
  • TelegramSearchBot.Common/Model/Tools/IterationLimitReachedPayload.cs
  • TelegramSearchBot.Database/Migrations/20260303031828_AddUserWithGroupUniqueIndex.cs
  • TelegramSearchBot.Database/Migrations/20260313124507_AddChannelWithModelIsDeleted.cs
  • TelegramSearchBot.LLM.Test/Service/AI/LLM/GeneralLLMServiceTests.cs
  • TelegramSearchBot.LLM.Test/Service/AI/LLM/ModelCapabilityServiceTests.cs
  • TelegramSearchBot.LLM.Test/Service/AI/LLM/OpenAIProviderHistorySerializationTests.cs
  • TelegramSearchBot.LLM/Service/AI/LLM/GeminiService.cs
  • TelegramSearchBot.LLM/Service/AI/LLM/McpToolHelper.cs
  • TelegramSearchBot.LLM/Service/AI/LLM/OllamaService.cs
  • TelegramSearchBot.LLM/Service/AI/LLM/OpenAIService.cs
  • TelegramSearchBot.LLM/Service/Mcp/McpClient.cs
  • TelegramSearchBot.LLM/Service/Mcp/McpServerManager.cs
  • TelegramSearchBot.LLM/Service/Tools/FileToolService.cs
  • TelegramSearchBot.Test/Helper/WordCloudHelperTests.cs
  • TelegramSearchBot/AppBootstrap/GeneralBootstrap.cs
  • TelegramSearchBot/Extension/ServiceCollectionExtension.cs
  • TelegramSearchBot/Model/ChatExport/ChatExport.cs
  • TelegramSearchBot/Service/BotAPI/SendMessageService.Streaming.cs
  • TelegramSearchBot/Service/Manage/ChatImportService.cs
  • TelegramSearchBot/Service/Storage/MessageService.cs
  • TelegramSearchBot/Service/Vector/FaissVectorService.cs
  • TelegramSearchBot/TelegramSearchBot.csproj
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch issue-81-telegram-json-export
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

🔍 PR检查报告

📋 检查概览

🧪 测试结果

平台 状态 详情
Ubuntu 🔴 失败 测试结果不可用
Windows 🔴 失败 测试结果不可用

📊 代码质量

  • ✅ 代码格式化检查
  • ✅ 安全漏洞扫描
  • ✅ 依赖包分析
  • ✅ 代码覆盖率收集

📁 测试产物

  • 测试结果文件已上传为artifacts
  • 代码覆盖率已上传到Codecov

🔗 相关链接


此报告由GitHub Actions自动生成

Fix whitespace formatting issues detected by CI on Windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

增加Teleram官方的JSON格式导出历史记录适配

2 participants