M
M
MrKiD2017-05-09 11:02:41
In contact with
MrKiD, 2017-05-09 11:02:41

How to check if a group exists?

An application is created in which posts from different groups are collected by tags.
Groups are added by the user by id or name. What query to check that the group exists? It is clear that almost anyone can, but are there any special ones?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2017-05-09
@sergiks

Use the groups.getById() method to get its basic information. A non-existent group will have name = "DELETED"and deactivated = "deleted"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question