Working with User Images Sent to the Bot

I want help regarding getting image from user by chatbot and applying algorithm on that image. After processing send characteristic of that image to user through chat or send image to user