R
R
Ruslan Korsunov2021-04-26 17:27:49
In contact with
Ruslan Korsunov, 2021-04-26 17:27:49

How to make logic for a bot?

Hello everyone, how to make a bot in VK. To edit photos. Is it possible to do so, I don’t know, it may sound strange. Is it possible to make a bot that can upload a photo to it and choose what effect you need for the photo, and the bot, for example, uploads the photo to the site and processes it on the site, and then the bot sends the processed photo back to the user in VK.
It sounds strange), if you can do this, where to start?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
W
WolfInChains, 2021-04-26
@ruslan6565

For example, through longpoll/callback (just right in your case) api to receive bot events, check the command text and whether there is a photo in the message, download, edit with pillow and upload back. About editing you can

here
https://m.habr.com/ru/post/451074/
https://m.habr.com/ru/post/530800/
read about longpoll / callback you can find yourself if you are not familiar

R
Romses Panagiotis, 2021-04-26
@romesses

Walk articles on how to build bots for VK.
Read the VK documentation: check what is possible and impossible, how to do it right, etc.
Then think about how you will process the images. Implement the necessary logic in the bot...

P
Puma Thailand, 2021-04-27
@opium

Start by reading people books on programming

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question