ChatJoinRequest.approve()#
- ChatJoinRequest.approve()#
Bound method approve of
ChatJoinRequest
.Use as a shortcut for:
await client.approve_chat_join_request( chat_id=request.chat.id, user_id=request.from_user.id )
Example
await request.approve()
- Returns:
bool
– True on success.- Raises:
RPCError – In case of a Telegram RPC error.