-
Notifications
You must be signed in to change notification settings - Fork 2
feat: add send_video_file and send_document_file MCP tools #253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
41cbf12
3e5536b
67a8b44
e0fc8ab
858dd15
7b3eb7a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| namespace TelegramSearchBot.Model.Tools { | ||
| public class SendDocumentResult { | ||
| public bool Success { get; set; } | ||
| public int? MessageId { get; set; } | ||
| public long ChatId { get; set; } | ||
| public string Error { get; set; } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,8 @@ | ||||||
| namespace TelegramSearchBot.Model.Tools { | ||||||
| public class SendVideoResult { | ||||||
| public bool Success { get; set; } | ||||||
| public int? MessageId { get; set; } | ||||||
| public long ChatId { get; set; } | ||||||
| public string Error { get; set; } | ||||||
|
Check warning on line 6 in TelegramSearchBot.Common/Model/Tools/SendVideoResult.cs
|
||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # First, let's examine the SendVideoResult.cs file
find . -name "SendVideoResult.cs" -type fRepository: ModerRAS/TelegramSearchBot Length of output: 127 🏁 Script executed: # Let's also search for SendVideoToolService to understand the usage context
find . -name "*SendVideoToolService*" -type fRepository: ModerRAS/TelegramSearchBot Length of output: 188 🏁 Script executed: # Search for how Error property is set/used
rg "SendVideoResult" -t cs -A 3 -B 3Repository: ModerRAS/TelegramSearchBot Length of output: 5610 🏁 Script executed: # Let's examine the complete SendVideoResult.cs file
cat -n ./TelegramSearchBot.Common/Model/Tools/SendVideoResult.csRepository: ModerRAS/TelegramSearchBot Length of output: 379 🏁 Script executed: # Let's also check the complete SendVideoToolService.SendVideoFile method to see all success/error paths
cat -n ./TelegramSearchBot/Service/Tools/SendVideoToolService.cs | sed -n '1,100p'Repository: ModerRAS/TelegramSearchBot Length of output: 5366 🏁 Script executed: # Check for any port-related code in SendVideoResult.cs (coding guideline check)
rg "Port|port|:|\d{4,5}" ./TelegramSearchBot.Common/Model/Tools/SendVideoResult.csRepository: ModerRAS/TelegramSearchBot Length of output: 52 Make Successful results don't set this property (lines 87-91 in 🩹 Proposed fix- public string Error { get; set; }
+ public string? Error { get; set; }📝 Committable suggestion
Suggested change
🧰 Tools🪛 GitHub Check: build (ubuntu-latest)[warning] 6-6: 🤖 Prompt for AI Agents |
||||||
| } | ||||||
| } | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: ModerRAS/TelegramSearchBot
Length of output: 188
🏁 Script executed:
cat -n "./TelegramSearchBot.Common/Model/Tools/SendDocumentResult.cs"Repository: ModerRAS/TelegramSearchBot
Length of output: 382
🏁 Script executed:
cat -n "./TelegramSearchBot.Common/Model/Tools/SendVideoResult.cs"Repository: ModerRAS/TelegramSearchBot
Length of output: 379
🏁 Script executed:
Repository: ModerRAS/TelegramSearchBot
Length of output: 255
🏁 Script executed:
Repository: ModerRAS/TelegramSearchBot
Length of output: 246
🏁 Script executed:
cat -n "./TelegramSearchBot/Service/Tools/SendDocumentToolService.cs"Repository: ModerRAS/TelegramSearchBot
Length of output: 5422
🏁 Script executed:
cat -n "./TelegramSearchBot/Service/Tools/SendVideoToolService.cs"Repository: ModerRAS/TelegramSearchBot
Length of output: 5375
Make
Errornullable.Erroris only populated on failures, so keeping it non-nullable gives consumers the wrong contract and produces nullable noise.🩹 Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents