Tdesktop: [Bug] Can't play games sent via Inline Mode

Created on 19 Oct 2016  路  7Comments  路  Source: telegramdesktop/tdesktop

I've recorded video that demonstrates this bug: https://youtu.be/bKbG5akhBVw

Steps to reproduce

  1. Send game via inline mode

    Expected behaviour

There should be "Play %game%" button or game should start when you click on image.

Actual behaviour

There's no "Play %game%" button and you can't start game clicking on its image. Only restart solves the problem.

Configuration

Operating system: Windows 10 LTSB x64
Version of Telegram Desktop: 0.10.15 alpha

Most helpful comment

Fixed.

All 7 comments

I can confirm this behavior in 0.10.16... however, this does not happen @gamee or @gamebot but with new bots that are building by independent developers: Ex. @gameshdbot, @awesomebot, @microgamesbot, etc.

As @Kondra007 says, the button to start the game only appears once restarted TDesktop.

Before

before

After

after

Those bots don't send the required markup in the inline results list. I hope that it will be fixed on the server side (the markup will be forced for the game inline results if there is no such provided by the bot).

The other apps I guess handle this case correctly (by adding the markup when it is returned from server after sending).

@john-preston
I think they rely on Bot API description for sendGame, where it's stated that "Play Game" button will be shown even if no reply_markup is passed.
image

Well, then this is server-side fault :) It should add this "Play game_title" button in the inline results list, I hope it will.

芦Well, then this is server-side fault禄

@john-preston Should I (or you) close the issue then?

No, if the server won't fix it, then I'll fix it in the next version from the client side.

Fixed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Justinzobel picture Justinzobel  路  3Comments

slowaways picture slowaways  路  3Comments

TheAppService picture TheAppService  路  3Comments

LeonTheOriginal picture LeonTheOriginal  路  3Comments

hosseinab picture hosseinab  路  3Comments