TelegramConnectCode class

A one-time code that connects a Telegram chat when sent to the bot.

Constructors

TelegramConnectCode({required String code, required String command, String? botUsername, String? deepLink, String? groupLink, DateTime? expiresAt})
Creates a connect code.
const
TelegramConnectCode.fromJson(Map<String, dynamic> json)
Reads a connect code.
factory

Properties

botUsername → String?
The publishing bot, without the @.
final
code → String
The one-time code, valid for 15 minutes.
final
command → String
What to send in the chat: /connect <code>.
final
Opens a private chat with the bot, code included.
final
expiresAt → DateTime?
When the code lapses.
final
Adds the bot to a group, code included.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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