version: 2.1.3
isJoined
check user joined in channels or not, ids parameter can be array for multi channels or can be string for one channel,
Parameters
ids | int or string or array | ids of channels you want to check , can be id or username | Yes |
user_id | int | user id for check joined in ids or not | Optional(Caught by catchFields method) |
Method errors
ErrorName | description |
---|---|
ids parameter not found | parameter ids not founded , set it like example |
Method examples
$this->isJoined(['ids'=>['BPT_CH','-1005465465454']]);
$this->isJoined(['user_id'=>'442109602','ids'=>'BPT_CH']);