Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createChatInvitelink returns array and solves the create link issue #986

Merged
merged 2 commits into from
Jul 21, 2022

Conversation

arifjawad
Copy link
Contributor

when I call createChatInviteLink it says, return type array given

@alies-dev
Copy link
Contributor

alies-dev commented Jul 20, 2022

@arifjawad
Thanks for catching the bug!

to return ChatInviteLink instance, it should be:

return new ChatInviteLink($this->post('createChatInviteLink', $params)->getDecodedBody());

@arifjawad
Copy link
Contributor Author

@lptn Thanks for the update. I tried your given code snippet and it worked perfectly. Thanks

@raiyan24r
Copy link

I faced the same issue. Thanks @arifjawad for bring this up

@arifjawad
Copy link
Contributor Author

I have updated the PR to return a ChatInviteLink object as per the official docs. Thanks to @lptn

@irazasyed irazasyed merged commit 15d2c57 into irazasyed:develop Jul 21, 2022
@irazasyed
Copy link
Owner

Thanks

@phpmac
Copy link

phpmac commented Aug 6, 2022

How do I know who enters through which link?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants