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

Games push a popup with the link instead of a game view #418

Closed
naive17 opened this issue Sep 2, 2017 · 3 comments
Closed

Games push a popup with the link instead of a game view #418

naive17 opened this issue Sep 2, 2017 · 3 comments

Comments

@naive17
Copy link

naive17 commented Sep 2, 2017

When i create a game bot and i start it , a popup show me the link of the game instead of opening a webview like other games

@MCSH
Copy link
Contributor

MCSH commented Oct 18, 2017

They have changed the api. You have to provide a query_callback_id and a url only.

The example uses the old library where you had to provide a text and a Boolean as well and that's why it doesn't work.

@joshrayman
Copy link

We came up against this problem yesterday - ended up using a quick hack. (changing the 'text' parameter in telegram.js:1052 for 'url' in the legacy format, because this doesn't accounted for the older syntax which had an object further along the query to specify a url)

But looking at that function you're supposed to give it an object instead of the three parameters like the old API/examples/code that you see online.

So it'd be sending answerCallbackQuery(obj)
{ callback_query_id: id, url: 'url', }

instead of answerCallbackQuery(id, url).

@GochoMugo
Copy link
Collaborator

This has been fixed. Thanks. 😄

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

No branches or pull requests

4 participants