InternalLinkTypeAttachmentMenuBot class

Inheritance

Constructors

InternalLinkTypeAttachmentMenuBot({required TargetChat targetChat, required String botUsername, required String url, dynamic extra, int? clientId})
The link is a link to an attachment menu bot to be opened in the specified or a chosen chat. Process given target_chat to open the chat.. Then, call searchPublicChat with the given bot username, check that the user is a bot and can be added to attachment menu. Then, use getAttachmentMenuBot to receive information about the bot.. If the bot isn't added to attachment menu, then user needs to confirm adding the bot to attachment menu. If user confirms adding, then use toggleBotIsAddedToAttachmentMenu to add it.. If the attachment menu bot can't be used in the opened chat, show an error to the user. If the bot is added to attachment menu and can be used in the chat, then use openWebApp with the given URL
const
InternalLinkTypeAttachmentMenuBot.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

botUsername String
botUsername Username of the bot
final
clientId int?
clientId client identifier
final
extra → dynamic
extra callback sign
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetChat TargetChat
targetChat Target chat to be opened
final
url String
url URL to be passed to openWebApp
final

Methods

copyWith({TargetChat? targetChat, String? botUsername, String? url, dynamic extra, int? clientId}) InternalLinkTypeAttachmentMenuBot
override
getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String