E
E
Evgeny Simonenko2020-02-15 13:55:10
Python
Evgeny Simonenko, 2020-02-15 13:55:10

How to find out a VK user ID by a short name using vk_api (python)?

When the bot receives a message with a link to the VK page, it is necessary to send the ID of this page in response, I saw a similar question, but I didn’t even find the methods that were described there (utils.resolveScreenName, users.get).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2020-02-15
@xecuth

VKontakte API methods, you can use any of them:

  1. utils.resolveScreenName()
  2. users.get()

To call them from Python vk_api , see the main class VkApi method method()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question