UserTypeBot class final

Inheritance

Constructors

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

Properties

activeUserCount → int
The number of recently active users of the bot
final
allowsUsersToCreateTopics → bool
True, if users can create and delete topics in the chat with the bot
final
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
canConnectToBusiness → bool
True, if the bot supports connection to user accounts for chat automation
final
canJoinGroups → bool
True, if the bot can be invited to basic group and supergroup chats
final
canManageBots → bool
True, if the bot can manage other bots
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
hasMainWebApp → bool
True, if the bot has the main Web App
final
hasTopics → bool
True, if the bot has topics
final
inlineQueryPlaceholder → String
Placeholder for inline queries (displayed on the application input field)
final
isGuard → bool
True, if the bot can be set as a guard bot in supergroup chats
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
supportsGuestQueries → bool
True, if the bot can be queried by username from any non-secret chat
final

Methods

copyWith({bool? canBeEdited, bool? canJoinGroups, bool? canReadAllGroupMessages, bool? hasMainWebApp, bool? hasTopics, bool? allowsUsersToCreateTopics, bool? canManageBots, bool? isInline, String? inlineQueryPlaceholder, bool? supportsGuestQueries, bool? isGuard, bool? needLocation, bool? canConnectToBusiness, bool? canBeAddedToAttachmentMenu, int? activeUserCount}) → 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.