GetWebAppLinkUrl class final

GetWebAppLinkUrl (getWebAppLinkUrl) - TDLib function

Returns an HTTPS URL of a Web App to open after a link of the type internalLinkTypeWebApp is clicked.

  • chatId: Identifier of the chat in which the link was clicked; pass 0 if none.
  • botUserId: Identifier of the target bot.
  • webAppShortName: Short name of the Web App.
  • startParameter: Start parameter from internalLinkTypeWebApp.
  • theme: Preferred Web App theme; pass null to use the default theme (optional).
  • applicationName: Short name of the current application; 0-64 English letters, digits, and underscores.
  • allowWriteAccess: Pass true if the current user allowed the bot to send them messages.

HttpUrl is returned on completion.

Inheritance

Constructors

GetWebAppLinkUrl({required int chatId, required int botUserId, required String webAppShortName, required String startParameter, ThemeParameters? theme, required String applicationName, required bool allowWriteAccess})
GetWebAppLinkUrl (getWebAppLinkUrl) - TDLib function
const

Properties

allowWriteAccess bool
Pass true if the current user allowed the bot to send them messages
final
applicationName String
Short name of the current application; 0-64 English letters, digits, and underscores
final
botUserId int
Identifier of the target bot
final
chatId int
Identifier of the chat in which the link was clicked; pass 0 if none
final
currentObjectId String
TDLib object type for current class instance
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startParameter String
Start parameter from internalLinkTypeWebApp
final
theme ThemeParameters?
Preferred Web App theme; pass null to use the default theme
final
webAppShortName String
Short name of the Web App
final

Methods

copyWith({int? chatId, int? botUserId, String? webAppShortName, String? startParameter, ThemeParameters? theme, String? applicationName, bool? allowWriteAccess}) GetWebAppLinkUrl
Copy model with modified properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) Map<String, dynamic>
Convert model to TDLib JSON format
override
toString() String
Convert model to TDLib JSON format, encoded into String.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultObjectId → const String
TDLib object type