Open appleGun22 opened 2 years ago
I've tried two methods, tgbotapi.FileID(file_id) (wrong file type) , tgbotapi.FileURL( bot.GetFileDirectURL(file_id) ) (wrong file identifier/HTTP URL specified)
tgbotapi.FileID(file_id)
tgbotapi.FileURL( bot.GetFileDirectURL(file_id) )
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
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?