Answer the question
In order to leave comments, you need to log in
Can't combine two variables?
I don't know how to connect two variables please help!
there in the user variable it is necessary to insert the uid variable how to do this?
messages = vk.method("messages.getConversations", {"offset": 0, "count": 20, "filter": "unanswered"})
uid = messages["items"][0]["last_message"]["from_id"]
user = vk.method("users.get", {"user_ids": uid}) #там где uid надо что бы была переменная uid как это сделать?
first_name = user[0]['first_name']
last_name = user[0]['last_name']
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question