Expand description
Authorization state handlers.
Structs§
- Auth
State Handler Proxy AuthStateHandlerProxy
implements AuthStateHandlerProxy in a way that allows to proxy all auth methods to particular clients.- Console
Auth State Handler Deprecated - Provides minimal implementation of
AuthStateHandler
. All required methods wait (synchronously) for stdin input - Signal
Auth State Handler Deprecated - All required methods wait for data sent by Sender.
Enums§
- Client
Identifier ClientIdentifier
allows to determine if client is bot (with bot token as identifier) or client (with a phone number)
Traits§
- Auth
State Handler AuthStateHandler
trait provides methods that returns data, required for authentication It allows you to handle particular “auth states”, such as WaitPassword, WaitPhoneNumber and so on.- Client
Auth State Handler ClientAuthStateHandler
trait provides methods that returns data, required for authentication. Mandatory to use AuthStateHandlerProxy if you want to handle authorization per-client, see Seeexamples/auth_bot.rs
for details.