P
P
patsenko18532019-02-13 15:56:58
Node.js
patsenko1853, 2019-02-13 15:56:58

How to compare actions in a telegram bot and in VK?

Hey! We are writing a telegram bot on a node that should send the bot user links to various posts on VK and after some user actions (like, comment). How can you implement a check that the bot user has performed some action in VK?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
feyanax, 2019-02-13
@patsenko1853

Option 1: Store user data, request at the start of the bot, and then on the target action check for a like from this user, a repost on the user's wall.
Option 2: limit the action by time, for example, like 1 post within 10 minutes, and compare the value before the task is issued and after it is completed.
Option 2 is preferable, can be used on test posts to identify the performer and later check with option 1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question