F
F
FrizovPlay2019-06-20 23:38:43
PHP
FrizovPlay, 2019-06-20 23:38:43

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

1 answer(s)
L
lightmanLP, 2019-06-27
@lightmanLP

https://vk.com/dev/messages.getConversationsById
https://vk.com/dev/messages.getConversationMembers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question