GetWebAppUrl class final
Returns an HTTPS URL of a Web App to open from the side menu, a keyboardButtonTypeWebApp button, an inlineQueryResultsButtonTypeWebApp button, or an internalLinkTypeSideMenuBot link
Returns HttpUrl.
- Inheritance
-
- Object
- TdFunction<
HttpUrl> - GetWebAppUrl
Constructors
- GetWebAppUrl({required int botUserId, required String url, ThemeParameters? theme, required String applicationName})
-
Returns an HTTPS URL of a Web App to open from the side menu, a keyboardButtonTypeWebApp button, an inlineQueryResultsButtonTypeWebApp button, or an internalLinkTypeSideMenuBot link
const
Properties
- applicationName → String
-
Short name of the application; 0-64 English letters, digits, and underscores
final
- botUserId → int
-
Identifier of the target bot
final
- canBeCalledSynchronously → bool
-
Whether TDLib documents this request as callable through
td_execute.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → ThemeParameters?
-
Preferred Web App theme; pass null to use the default theme
final
- url → String
-
The URL from a keyboardButtonTypeWebApp button, inlineQueryResultsButtonTypeWebApp button, an internalLinkTypeSideMenuBot link, or an empty when the bot is opened from the side menu
final
Methods
-
copyWith(
{int? botUserId, String? url, ThemeParameters? theme()?, String? applicationName}) → GetWebAppUrl -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib function name, e.g.
getMe.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
Converts this request to TDLib JSON, tagged with
extraif given.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.