Skip to content

Sending photo #1250

Closed Answered by OpticalEngineering
shelby33 asked this question in Q&A
Discussion options

You must be logged in to vote

your imagePath seem to be a telegram's fileId, it's not a local file. if your imagePath is a telegram's fileId, your code(InputFile photoFile = new InputFile(new File(imagePath))) should be modified to this:InputFile photoFile = new InputFile(imagePath)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rubenlagus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants