You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bot doesn't reply for users not in access list for given commands.
Bot asks for authentication code for given commands, provided to the user by other means.
Actual behaviour
Open to the world for anyone to send commands to your bot, not even via telegram (if he/she knows your hook address), even with your own telegram id (if he/she knows that too).
Steps to reproduce
See bellow
Extra details
Currently I do this by hacking around the bot api, using google authenticator to get time based codes.
My wish is something like this (better) to be included into the main code.
Commands must use \ShdTelegramConversation to open conversations, otherwise the microtime will not be updated and conversation will be closed right after execution.
The url token is even suggested in telegram bot api FAQ and it is just a way to make your address hard to guess, kind of solves one problem.
This however adds a way to limit access and authenticate, available to all commands if they wish to use it.
It could be better integrated into the code and natively available to commands.
Required Information
Expected behaviour
Bot doesn't reply for users not in access list for given commands.
Bot asks for authentication code for given commands, provided to the user by other means.
Actual behaviour
Open to the world for anyone to send commands to your bot, not even via telegram (if he/she knows your hook address), even with your own telegram id (if he/she knows that too).
Steps to reproduce
See bellow
Extra details
Currently I do this by hacking around the bot api, using google authenticator to get time based codes.
My wish is something like this (better) to be included into the main code.
For authentication I use a wrapper for google authenticator:
ShdGoogleAuth::verify($code)
Then setting access control
commands go like this
Commands must use
\ShdTelegramConversation
to open conversations, otherwise the microtime will not be updated and conversation will be closed right after execution.or like this (without authentication)
The text was updated successfully, but these errors were encountered: