A
A
arthur38332020-09-18 12:10:13
Python
arthur3833, 2020-09-18 12:10:13

How to forward the last message from a user in a VK group?

How do I make the bot forward me the last message from the user who will write the command, I tried writing 123 in forward_messages and it forwarded the message that came a month ago, but how do I make it forward the last message. And also how to make it so that it forwards the message after the person writes the command and then writes the name of the product that he wants to buy.

elif response == 'купить':
                vk_session.method('messages.send', {'user_id': 610080859,
                                                    'message': "Покупка товара @id" + str(
                                                        event.user_id),'forward_messages': 123, 'random_id': 0}) and vk_session.method('messages.send', {'user_id': event.user_id, 'message': 'Хорошо, в течение 30 минут с тобой свяжется администратор группы', 'random_id': 0})

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question