twofactor_gateway
twofactor_gateway copied to clipboard
Make Telegram code selectable in the message received by the bot
If the bot were to send the code enclosed in backticks, the Telegram app allows copying that specific part of the message, which can be helpful when using the Telegram bot 2FA from mobile devices.
Makes sense. This needs a little refactoring, however as we currently use the very same string for all gateways, so modifications in https://github.com/nextcloud/twofactor_gateway/blob/master/lib/Service/Gateway/Telegram/Gateway.php aren't easily possible.