BotInfo class

Bot information for context

Constructors

BotInfo({User? me, String? username, int? id})
Creates a new BotInfo instance.
const
BotInfo.fromUser(User user)
Creates BotInfo from User object
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id int?
Bot's ID
final
me User?
Bot's user information
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String?
Bot's username
final

Methods

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

Operators

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