twofactor_gateway icon indicating copy to clipboard operation
twofactor_gateway copied to clipboard

Make Telegram code selectable in the message received by the bot

Open jandr opened this issue 6 years ago • 1 comments

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.

jandr avatar Aug 27 '19 14:08 jandr

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.

ChristophWurst avatar Aug 29 '19 10:08 ChristophWurst