Answer the question
In order to leave comments, you need to log in
Attachment check?
I want that when the user enters the number 7, the bot writes that he throws off the photo, the user takes off, and the bot has already done its manipulations with processing. It turns out the only way - the user send 7 and photos in one message
for event in longpoll.listen():
if event.type == VkEventType.MESSAGE_NEW and event.to_me:
msg = event.text.lower()
id = event.user_id
if msg == "7" or msg == "картинка":
download_photo(id)
sender(id, 'Пошла ебатория')
jmih(id)
send_photo(id)
delete_photo(id)
else:
sender(id, 'Ничего не понял...')
Answer the question
In order to leave comments, you need to log in
Well, that's right, your code says that when the bot receives the number 7 or the word "Picture", it immediately starts downloading the image. If you want him to write a message, then replace downloading a picture in the code with writing a message.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question