Update task task-82
This commit is contained in:
@@ -153,7 +153,7 @@ module Tasks
|
||||
find_similar_fingerprints(
|
||||
fingerprint_value: fingerprint_value,
|
||||
fingerprint_detail_value: detail_fingerprint_value,
|
||||
limit: 20,
|
||||
limit: 10,
|
||||
oversearch: 3,
|
||||
includes: {
|
||||
post_file: :post,
|
||||
@@ -284,7 +284,7 @@ module Tasks
|
||||
|
||||
# Download the file
|
||||
file_url = "https://api.telegram.org/file/bot#{bot_token}/#{file_path}"
|
||||
log("📥 Downloading image from: #{file_url[0..50]}...")
|
||||
log("📥 Downloading image from: #{file_url}...")
|
||||
|
||||
uri = URI(file_url)
|
||||
downloaded_data = Net::HTTP.get(uri)
|
||||
|
||||
@@ -4,7 +4,13 @@ title: Add /start command to Telegram bot with usage instructions
|
||||
status: To Do
|
||||
assignee: []
|
||||
created_date: '2025-07-31'
|
||||
labels: []
|
||||
updated_date: '2025-07-31'
|
||||
labels:
|
||||
- telegram
|
||||
- bot
|
||||
- commands
|
||||
- ux
|
||||
- help
|
||||
dependencies: []
|
||||
---
|
||||
|
||||
@@ -22,3 +28,16 @@ Implement a /start command handler in the Telegram bot that provides clear instr
|
||||
- [ ] Command works for both new and existing users
|
||||
- [ ] Bot continues to handle regular image messages normally
|
||||
- [ ] Help text is concise but comprehensive
|
||||
|
||||
## Implementation Plan
|
||||
|
||||
1. Add command detection logic to TelegramBotTask#handle_message to identify /start commands
|
||||
2. Create a dedicated method handle_start_command to process /start requests
|
||||
3. Design clear, user-friendly help text explaining bot functionality
|
||||
4. Include information about supported image formats and similarity threshold
|
||||
5. Add examples of how to send or forward images
|
||||
6. Format response text with proper Markdown for readability
|
||||
7. Test /start command works for new conversations and existing chats
|
||||
8. Ensure /start command doesn't interfere with image processing workflow
|
||||
9. Verify response is sent immediately without 'analyzing' delay
|
||||
10. Update any existing documentation to mention the /start command
|
||||
|
||||
Reference in New Issue
Block a user