wiz0u / WTelegramClient

Telegram Client API (MTProto) library written 100% in C# and .NET
https://wiz0u.github.io/WTelegramClient/
MIT License
996 stars 164 forks source link

Open MiniApp returns BOT_WEBVIEW_DISABLED exception #226

Closed AndreyZ1 closed 10 months ago

AndreyZ1 commented 10 months ago

I'm trying to programatically open mini app from bot's "Start" inline button. This button contains absolute URL and it has to receive query_id and hash parameters (WebAppData object)

In mobile device after button is clicked it opens pop-up that contains plain html inside iframe with WebAppData parameters and renders it.

I'm assuming, I have to use messages.requestWebView (https://core.telegram.org/method/messages.requestWebView) and I was impressed when I found that this is implemented already, but in some reason, I received BOT_WEBVIEW_DISABLED exception.

Is here anything I missing?

I'm passing Peer, Bot, Url, Platform parameters.

github-actions[bot] commented 10 months ago

Please note that Github Issues should be used only for problems with the library code itself. For questions about Telegram API usage, you can search the API official documentation or click here to ask your question on StackOverflow so the whole community can help and benefit.