Skip to content

export Class

ChatJoinRequest ​

extends ​

BaseClass<ChatJoinRequest, ChatJoinRequestPacket>

Constructor ​

ts
 new ChatJoinRequest( client, packet )
ParameterTypeDescription
clientClient
packetChatJoinRequestPacket

Properties ​

get chat : Chat ​

get manager : ChatRequestsManager ​

get user : User ​

_chat : number ​

_from : number ​

readonly client : Client ​

Methods ​

asyncapprove( ) ​

Approves the join request.

Returns: Promise<boolean>

asyncdecline( ) ​

Rejects the join request.

Returns: Promise<boolean>

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.