Answer the question
In order to leave comments, you need to log in
How to add the ID of the creator of the conversation to the variable?
Hello. I recently started learning PHP. I am writing a VKontakte bot. There were small questions about variables, how to add the ID of the creator of the conversation or the administrator of the conversation to a certain variable. (bot works in conversations). For example, a user adds a bot to a conversation, he is either a creator or an administrator. There are certain commands that only the creator and admins of a conversation can execute. You need a variable that says "this user is the creator or administrator of the conversation" in order to use this variable in if () in the future. The question arose, but how to add such a function to it?
Answer the question
In order to leave comments, you need to log in
https://vk.com/dev/messages.getConversationsById
https://vk.com/dev/messages.getConversationMembers
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question