A member uploads several photos as one Telegram album. Your bot records only one image—or creates several separate submissions. The likely design problem is treating a message, an album, and a business submission as the same object.
A public Make consultation request on Freelancehunt describes multi-photo posts being split apart. A separate channel-copying request also asks for intact photo and video albums. Checked on November 27, 2026, the pages show March 16 and October 7 respectively, without an explicit year or a verifiable project status. They are historical problem references, not advertised here as current bidding opportunities.
This guide uses a hypothetical workflow: members send event photos to a community editor through a private bot chat. It provides a proposed specification and tests, not a delivered client case. Instagram publishing, automatic translation, and channel-to-channel copying from the original requests are outside this first version.
Separate messages, albums, and submissions
The grammY FAQ explains that bots receive an album as individual messages. A shared media_group_id identifies received members, but provides neither a total count nor a last-item signal. Other messages can arrive between members.
Give an event submission its own business identifier. One submission might contain two albums and an extra standalone photo. Telegram's grouping field should not define the submission itself.
Use three separate concepts:
- Message item: the chat, original message ID, attachment reference, and item caption.
- Album group: the association between messages belonging to one Telegram media group.
- Submission draft: its owner, event, complete item list, and confirmation state.
The desired outcome is a confirmed collection for an editor. Running a message handler should not create another business submission every time.
The photo array does not count uploaded pictures
The aiogram Message reference describes photo as available sizes of one photo and media_group_id as an identifier within the chat. Counting array entries can therefore count several sizes of the same image.
Specify one item per photo message. Choose an appropriate file reference from that message's sizes according to a separate selection policy. Downloading originals and analyzing image content are outside this design.
For example, three photo messages should produce three items even if each includes several sizes. Scope album grouping by chat and media_group_id; do not treat the string as globally unique across chats. A standalone photo without the field must still work. Reprocessing an original message must not increase the count.
Business ownership needs another check: associate each item with the correct sender and draft. Two people uploading at almost the same time must not be combined. Two consecutive albums from one person must retain separate album associations, even when they belong to the same draft.
A collection delay is not proof of completeness
A short delay may reduce noisy acknowledgments. It should not become the acceptance rule for a complete submission. Include slow connections, retries, and concurrent processing in the failure scenarios.
A photo-submission flow can work like this:
/newcreates a draft for a selected event, with an optional expected photo count.- Each accepted photo message updates the draft. Say “3 photos received so far,” avoiding “album complete.”
/previewshows the current items, album groups, and total for the member to inspect.- Confirming that preview version creates one submission receipt.
An expected count is a user declaration. If the member expects five photos and four are recorded, show the mismatch and offer to continue uploading or change the expectation. The bot cannot invent the missing item.
Define changes after preview too. Suppose preview version 7 contains four photos and a fifth arrives before confirmation. The old confirmation should require a new preview. Coordinate the version check and state transition in persistent storage; an unchecked in-memory read followed by a write is insufficient. The transaction mechanism depends on the runtime.
Late arrivals after confirmation need an explicit destination. If a photo belongs to an album in an already confirmed submission, place it in a pending supplement and require confirmation again. Do not silently change the editor's confirmed list or attach it to a newly opened draft. Ask the user when ownership cannot be established.
Captions and outgoing albums need separate rules
Keep each message item's own caption, including an empty value when absent. Ask for an overall description separately if the workflow needs one. The last text to arrive should not casually overwrite every item's caption.
A preview can list item numbers and accessible attachments without resending an album in the first release. The grammY Media Groups guide describes building input objects for sending and editing media. An outgoing-media helper does not establish that an incoming collection is complete.
If publishing a reconstructed album becomes necessary, add separate tests for supported sending methods, media types, output order, captions, and partial failure. Receiving photos, confirming a submission, and publishing to a channel are three different outcomes. A successful registration must not trigger a “published to channel” receipt.
A reusable prompt for a small first version
Build an event-photo submission bot that works only in private chats. Each user has one active draft.
/newselects an event and optionally records an expected count. Record one item per photo message; multiple photo sizes do not count as additional pictures. Preserve chat ID, message ID, album association, file reference, and individual caption. Use the original message identity to handle repeated processing. Never merge different users, chats, or albums because they arrive close together./previewshows the current list and preview version. If the draft changed, reject confirmation of an old preview and request another preview. Successful confirmation creates one receipt. Late photos from a confirmed album enter a pending supplement and need confirmation before changing the submission./cancelcancels only the current draft. Users can see only their own submissions; authorized editors can see confirmed lists. Exclude automatic forwarding, Instagram, OCR, and AI translation from this release. Validate the required fields and persistence operations against the current SDK before publishing and testing.
This is a proposed specification. Add your own photo-count limit, retention period, and permitted media policy. Video and document support require their own rules and tests; passing the photo path does not establish support for every attachment type.
Acceptance tests for the published bot
- One photo with several sizes counts as one; a three-photo album ultimately counts as three.
- Two consecutive albums retain their group identities within the intended draft.
- Two users upload interleaved photos without either preview or editor list mixing ownership.
- Text between album items does not unexpectedly close collection.
- A deliberately delayed final item does not cause an early completeness claim.
- An added photo invalidates the previous preview's confirmation; repeated confirmation creates one receipt.
- A late member of a confirmed album appears as a pending supplement without silently changing the receipt.
- Drafts and album associations survive restart; replaying an original message does not raise the count.
- Empty and per-photo captions remain associated correctly; cancellation does not contaminate the next draft.
Use the file-collection guide for attachment identifiers, access rules, and file policies. This article addresses the additional problem of grouping multiple album messages, counting photos, and defining confirmation boundaries.
Start with a verified receiving path in BotFatherV2
BotFatherV2 supports creating and modifying Telegram Serverless bots through AI conversations. On November 27, 2026, some public product pages used the Teebot name while the BitBear homepage still listed BotFatherV2. This article retains the site's product tag.
AI-assisted development, version publishing, and persistent tools provide a way to investigate this specification incrementally. However, the public help pages do not guarantee each album field or method. First check that the current SDK exposes photos, album identifiers, and the required database operations, then test two or three photos. Do not promise an already available, turnkey album workflow.
The current development documentation still limits generated code to a fixed SDK, excluding arbitrary npm modules and Node/Bun runtime APIs. The initial release does not add bot runtime features dependent on paid AI. Citing grammY and aiogram verifies message semantics; it does not mean these frameworks are installed on the platform. Cross-platform publishing, translation models, and external APIs require separate integration, availability, and cost checks.
BotFatherV2 is independent of Telegram's official BotFather. The next step is a small receiving, grouping, preview, and confirmation prototype: inspect the validation report, publish, and test it in Telegram. Passing code generation does not establish that real albums pass acceptance tests.
Sources and verification date
- Freelancehunt: the two linked client requests. Their public English pages are marked as automatic translations; original descriptions require login, and the original language and publication year were not confirmed. Only necessary client requirements are summarized, not bidders' implementation or pricing promises.
- grammY: the FAQ album section and Media Groups, first-party English engineering documentation without explicit publication dates.
- aiogram: Message, first-party English type documentation without an explicit publication date.
- Product scope was also checked against the BitBear homepage, product pages, and public AI development documentation. All links were checked on November 27, 2026. The proposed workflow, prompt, and acceptance cases are original editorial designs.