BotLink class
This class represents a Telegram bot deeplink.
This can be useful to start a conversation with a bot. You can optionall pass a startParameter to the bot.
The t.me link will be in the format: https://t.me/<bot_username>?start=<parameter>
The tg link will be in the format: tg://resolve?domain=<bot_username>&start=<parameter>
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- https → String
-
https://t.me/ link
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startParameter → String?
-
Start parameter, up to 64 base64url characters: if provided and the bot_username is indeed a bot, the text input bar should be replaced with a Start button (even if the user has already started the bot) that should invoke messages.startBot with the appropriate parameter once clicked.
final
- tg → String
-
tg:// link
no setteroverride
- username → String
-
The username of the bot.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
By default, this method returns the tg link.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited