Functional Sub-Spec: File & Media Attachment
Requirements Traceability
[FUNC-007]: File & Media Upload Dispatch
Detailed Functional Descriptions
[FUNC-007] File & Media Upload Dispatch
The system must support uploading local files and media attachments directly to Telegram chats, supergroups, and channels:
Accept target
chat_id, optional message text / caption, repeatable-a, --attach <file>flags, optional-m, --mediamode flag, and optional-t, --topic <id>thread ID.Verify local file existence and readability before initiating TDLib upload.
Support documents, photos, audio, and generic binary attachments using TDLib’s
inputFileLocalwrapper withinputMessageDocumentor media payloads.Support single and multi-file attachments (repeatable
-a, --attachoptions).Display upload progress or completion confirmation upon successful dispatch.