Skip to content
Discussion options

You must be logged in to vote

For messages.sendMultiMedia, Telegram does not accept raw inputMediaUploaded* constructors directly in multi_media. The official docs now state this explicitly:

The medias to send: note that they must be separately uploaded using messages.uploadMedia first, using raw inputMediaUploaded* constructors is not supported.

Reference: https://core.telegram.org/method/messages.sendMultiMedia

So this will fail with MEDIA_INVALID:

tg.InputSingleMedia{
    Media: &tg.InputMediaUploadedPhoto{File: inputFile},
}

The media has to be uploaded/associated first, then converted to an InputMediaPhoto or InputMediaDocument and passed to messages.sendMultiMedia.

If you use the higher-level telegram/message

Replies: 16 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ernado

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
6 participants
Converted from issue

This discussion was converted from issue #1527 on June 15, 2026 13:00.