UserTypeBot class final

Inheritance

Constructors

UserTypeBot({required bool canBeEdited, required bool canJoinGroups, required bool canReadAllGroupMessages, required bool isInline, required String inlineQueryPlaceholder, required bool needLocation, required bool canBeAddedToAttachmentMenu})
A bot (see https://core.telegram.org/bots)
const
UserTypeBot.fromJson(Map<String, dynamic> json)
Parses a UserTypeBot from TDLib JSON.
factory

Properties

canBeAddedToAttachmentMenu → bool
True, if the bot can be added to attachment or side menu
final
canBeEdited → bool
True, if the bot is owned by the current user and can be edited using the methods toggleBotUsernameIsActive, reorderBotActiveUsernames, setBotProfilePhoto, setBotName, setBotInfoDescription, and setBotInfoShortDescription
final
canJoinGroups → bool
True, if the bot can be invited to basic group and supergroup chats
final
canReadAllGroupMessages → bool
True, if the bot can read all messages in basic group or supergroup chats and not just those addressed to the bot. In private and channel chats a bot can always read all messages
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
inlineQueryPlaceholder → String
Placeholder for inline queries (displayed on the application input field)
final
isInline → bool
True, if the bot supports inline queries
final
needLocation → bool
True, if the location of the user is expected to be sent with every inline query to this bot
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? canBeEdited, bool? canJoinGroups, bool? canReadAllGroupMessages, bool? isInline, String? inlineQueryPlaceholder, bool? needLocation, bool? canBeAddedToAttachmentMenu}) → UserTypeBot
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
override
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.