We are working on a large-scale project, developing a mini app bot for a major company. During development, we encountered a bug that is causing issues on Android devices.
Here’s the code we’re using to force camera activation:
On iOS devices, everything works perfectly — the camera activates as expected. However, on Android, instead of opening the camera, it opens the gallery for selecting images. We tested the same code in Chrome, and it worked fine.
It seems that the issue lies with the Telegram in-app browser not supporting camera activation on Android devices.
By the way, this method
capture="camera"
not work too for android devices
Steps to reproduce
Create a function in your web mini app bot with the following <input> element:
From an Android device, try to activate this input field (it should trigger the camera to open).Observe that, instead of opening the camera, the Telegram in-app browser opens the gallery for selecting images.
UPD:
We also managed to find that the "multiple" parameter does not work on Android devices
I checked the operation of the parameter inside the mini app of the telegram bot, in a separate browser outside of telegram, in the telegram mini app did not work, in another browser it worked
Log in here to report bugs or suggest features. Please enter your phone number in the international format and we will send a confirmation message to your account via Telegram.