LoginUrl class
This object represents a parameter of the inline keyboard button used to automatically authorize a user.
Serves as a great replacement for the Telegram Login Widget when the user is coming from Telegram. All the user needs to do is tap/click a button and confirm that they want to log in.
Telegram apps support these buttons as of version 5.7.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
- LoginUrl.new({required String url, String? forwardText, String? botUsername, bool? requestWriteAccess})
-
LoginUrl.fromJson(Map<
String, dynamic> json) -
factory
Properties
- botUsername ↔ String?
-
getter/setter pair
- forwardText ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- requestWriteAccess ↔ bool?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url ↔ String
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited