Bot class
This is "a bridge" that connects Bot concept and User (telegram object) concept. This object represents a Telegram Bot, a User with more information.
- Annotations
-
- @JsonSerializable.new(includeIfNull: false)
Constructors
Properties
- canJoinGroups ↔ bool?
-
Optional. True, if the bot can be invited to groups.
Returned only in
getMe.getter/setter pair - canReadAllGroupMessages ↔ bool?
-
Optional.
True, if privacy mode is disabled for the bot. Returned only in
getMe.getter/setter pair - firstName ↔ String?
-
User‘s or bot’s first name.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int?
-
Unique identifier for this bot.
getter/setter pair
- isBot ↔ bool?
-
True, if this user is a bot.
getter/setter pair
- languageCode ↔ String?
-
Optional. IETF language tag of the user's language
getter/setter pair
- lastName ↔ String?
-
Optional. User‘s or bot’s last name.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsInlineQueries ↔ bool?
-
Optional. True, if the bot supports inline queries.
Returned only in
getMe.getter/setter pair - token ↔ String?
-
Unique token for a bot.
getter/setter pair
- username ↔ String?
-
Optional. User‘s or bot’s username.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
-
toUser(
) → User
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited