Skip to content

approveChatJoinRequest #345

Answered by rojvv
codexJoin asked this question in Q&A
Jun 27, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

You can approve like this:

await client.invoke(
  new Api.messages.HideChatJoinRequest({
    peer: chatId,
    userId: userId,
    approved: true,
  }),
);

And disapprove like this:

await client.invoke(
  new Api.messages.HideChatJoinRequest({
    peer: chatId,
    userId: userId,
    approved: false,
  }),
);

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@codexJoin
Comment options

@rojvv
Comment options

Answer selected by codexJoin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants