ivk1800 / tdlib-dart

MIT License
19 stars 12 forks source link

InlineKeyboardButton hit with tdlib API #20

Closed JrAnTran closed 1 month ago

JrAnTran commented 1 month ago

Hello @ivk1800

I need to simulate InlineKeyboardButton hit from my app. Digging around the internet, there is a few of things related such as GetBotCallbackAnswerRequest...

Could you please help clarify this. Many thanks.

I found this. Looks like always using sendMessage with inline button data? $inline[] = [['text'=>tgescape($row['text']), 'web_app' => ['url' => $row['val']]]]; $inline = '{"inline_keyboard":'.json_encode($inline).'}'; sendMsg($bot['token'],$chatId,"Нажмите для запуска:", ["reply_markup"=>$inline]);

JrAnTran commented 1 month ago

@ivk1800 in an attempt to openWebApp via hit inlinekeyboadbutton simualtion, I call openWebApp, but its returns "Bot not found"

Screenshot from 2024-05-10 18-55-05

While in the Telegram app, opening the web app is okay with hitting inline button

ivk1800 commented 1 month ago

Such questions would be better answered in the td repository, I am not qualified to answer this