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

Get bot_user_id #54

Closed
vladislav-yashin opened this issue Feb 8, 2018 · 3 comments
Closed

Get bot_user_id #54

vladislav-yashin opened this issue Feb 8, 2018 · 3 comments

Comments

@vladislav-yashin
Copy link
Contributor

vladislav-yashin commented Feb 8, 2018

I need to create new BasicGroupChat with bot. But createNewBasicGroupChat() assumes that user_ids is array of integers (I can't pass bot name here). So, is there any way to get bot id from it's name?
Upd.
Even though I found bot id in logs, trying to create chat with it results in {"@type"=>"error", "code"=>3, "message"=>"User not found"}

@vladislav-yashin
Copy link
Contributor Author

Somehow it works now. Dont't sure what exactly was wrong before. Probably problems on server side.

@feelfreelinux
Copy link

@funk-yourself does it work for you now? I'm having same issue at the moment

@vladislav-yashin
Copy link
Contributor Author

@feelfreelinux you should run getUser with your user id before any actions with it.

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

No branches or pull requests

2 participants