GroupBotLink class

This class represents a Telegram group deeplink.

Used to add bots to groups or channels. First of all, check that the <bot_username> indeed links to a bot.

The t.me link will be in the format: t.me/<bot_username>?startgroup=<parameter>&admin=<permissions> Or t.me/<bot_username>?startgroup&admin=<permissions>

The tg link will be in the format: tg://resolve?domain=<bot_username>&startgroup=<parameter>&admin=<permissions> Or tg://resolve?domain=<bot_username>&startgroup&admin=<permissions>

  • If the admin parameter is not provided:
    • Bring up a dialog selection of groups where the user can add members
    • Add the bot to the group
    • If a parameter is provided, invoke messages.startBot with the appropriate parameter
  • If the admin parameter is provided:
    • Bring up a dialog selection of groups where the user can add/edit admins
    • If the bot is already an admin of the group, combine existing admin rights with the admin rights in admin
    • Add the bot as admin/modify admin permissions to the new rights
    • If a parameter is provided, invoke messages.startBot with the appropriate parameter
Inheritance

Constructors

Creates a new GroupBotLink object.
const

Properties

admin BotAdminRights?
A combination of the following identifiers separated by +, each corresponding to the appropriate flag in the chatAdminRights » constructor.
final
hashCode int
The hash code for this object.
no setterinherited
https String
https://t.me/ link
no setteroverride
parameter String?
Start parameter, only for group links, up to 64 base64url characters:
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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