feat: added message from bot#163
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughUpdates handlePhoto to send a ticket ID reply to the user, then forward both that reply and the original photo to TELEGRAM_FILES_GROUP_ID using a batched forwardMessages call. Removes the previous final acknowledgment message. Other logic, including logging, upload, and ticket creation, is unchanged. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant U as User (Telegram)
participant B as WasabiBot
participant TG as Telegram API
participant G as Files Group
Note over U,B: handlePhoto flow (updated)
U->>B: Send photo
B->>TG: sendMessage(reply with ticket ID)
TG-->>B: replyMessageId
B->>TG: forwardMessages([replyMessageId, photoMessageId], to=G)
TG-->>G: Deliver forwarded messages
Note over B: Continue existing steps (logging, upload, ticket creation)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
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. Comment |
|



Summary by CodeRabbit