|
Hello all, How to with tgbot-cpp library upload media (photo or video) without actually sending it to the chat? I see that core API from Telegram itself have some appropriate method "uploadMedia", but I don't found it in tgbot-cpp. Thanks! |
Answered by
reo7sp
Sep 14, 2026
Replies: 1 comment
|
|
0 replies
Answer selected by
reo7sp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
messages.uploadMediabelongs to the MTProto client API, not the HTTP Bot API wrapped by tgbot-cpp. Bot API files are uploaded as part of a send/edit operation; there is no standalone upload-only method. Cache the returnedfile_idfor reuse.