A
A
artemk1ter2021-02-19 13:37:50
API
artemk1ter, 2021-02-19 13:37:50

How to implement button click in user LongPoll vk api?

There is a code:

#! /usr/bin/env python
# -*- coding: utf-8 -*-

import vk
from time import sleep

user_id = 381994701
vk_api_access_token = '7ebe46e049ff01d5f66411a730cad9384de39f1a8514dd2' 
vk_api_version = '5.103'

session = vk.AuthSession(access_token = vk_api_access_token)
api = vk.API(session, v = vk_api_version)


How can I click on a button in a community bot on behalf of a user?
qkEdSLWXRm4.jpg?size=529x211&quality=96&proxy=1&sign=6a70e9e05f564ecddbc454e983d9066b&type=album

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
HemulGM, 2021-02-19
@HemulGM

What does it mean? Do you want to press it for the user? Or do you want to edit?
The user cannot be clicked. You can, as it were, simply at the moment you need to "estimate" that the user pressed it. And do an action by sending an additional message with a new keyboard (or empty).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question