telegram-bot-api
telegram-bot-api copied to clipboard
How can I reupload a Documenet as a photo?
I've tried two methods, tgbotapi.FileID(file_id)
(wrong file type) , tgbotapi.FileURL( bot.GetFileDirectURL(file_id) )
(wrong file identifier/HTTP URL specified)
but they do not work, can I reupload the file without downloading it?
Any file_id has own type. If youre uploaded image as document, you need download it and upload as photo. You can't pass file_id of document type to sendPhoto method