Skip to content

Commit

Permalink
Fixed create method Chats, Roles
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-sham committed Mar 12, 2023
1 parent 665f4c3 commit 8d39314
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Resources/Chats.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function get_list($id){
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function create($params){
public function create($id, $params){
return $this->request( self::$res . '/' . $id . "/messages", $params);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Roles.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function get_list($id){
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function create($params){
public function create($id, $params){
return $this->request( self::$res . "/" . $id . "/roles" , 'POST', $params);
}

Expand Down

0 comments on commit 8d39314

Please sign in to comment.