Expand description
Authorization state handlers.
Structs§
- Auth
State Handler Proxy AuthStateHandlerProxyimplements 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 ClientIdentifierallows to determine if client is bot (with bot token as identifier) or client (with a phone number)
Traits§
- Auth
State Handler AuthStateHandlertrait 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 ClientAuthStateHandlertrait provides methods that returns data, required for authentication. Mandatory to use AuthStateHandlerProxy if you want to handle authorization per-client, see Seeexamples/auth_bot.rsfor details.