Telegram-Mini-Apps / telegram-apps

Made from scratch TypeScript packages, examples and documentation you will surely need to start developing on Telegram Mini Apps.
https://docs.telegram-mini-apps.com/
MIT License
691 stars 191 forks source link

[Feature]: Obtain self bot name #514

Closed erickskrauch closed 3 days ago

erickskrauch commented 4 weeks ago

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

I need to know the self bot name that is running the current mini application.the

Describe alternatives you've considered

Write some env variable during build time. But it is not quite a universal solution.

Additional context

No response

heyqbnk commented 3 days ago

I was thinking about this feature and not sure the Telegram team will work on it. I will explain why.

The reason is possible security issues. Imagine leaked init data. Implementing the feature you are requesting will let the attacker know to which bot this init data belongs to that allows him to abuse it

erickskrauch commented 3 days ago

I don't really agree with this decision, since it's like denying web developers access to window.location, but I trust the Telegram team to understand this issue better than I do.