BusinessBotRights class final
Describes rights of a business bot
Constructors
- BusinessBotRights({required bool canReply, required bool canReadMessages, required bool canDeleteSentMessages, required bool canDeleteAllMessages, required bool canEditName, required bool canEditBio, required bool canEditProfilePhoto, required bool canEditUsername, required bool canViewGiftsAndStars, required bool canSellGifts, required bool canChangeGiftSettings, required bool canTransferAndUpgradeGifts, required bool canTransferStars, required bool canManageStories})
-
Describes rights of a business bot
const
-
BusinessBotRights.fromJson(Map<
String, dynamic> json) -
Parses a BusinessBotRights from TDLib JSON.
factory
Properties
- canChangeGiftSettings → bool
-
True, if the bot can change gift receiving settings of the business account
final
- canDeleteAllMessages → bool
-
True, if the bot can delete any message
final
- canDeleteSentMessages → bool
-
True, if the bot can delete sent messages
final
- canEditBio → bool
-
True, if the bot can edit bio of the business account
final
- canEditName → bool
-
True, if the bot can edit name of the business account
final
- canEditProfilePhoto → bool
-
True, if the bot can edit profile photo of the business account
final
- canEditUsername → bool
-
True, if the bot can edit username of the business account
final
- canManageStories → bool
-
True, if the bot can post, edit and delete stories
final
- canReadMessages → bool
-
True, if the bot can mark incoming private messages as read
final
- canReply → bool
-
True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours
final
- canSellGifts → bool
-
True, if the bot can sell or delete regular gifts received by the business account
final
- canTransferAndUpgradeGifts → bool
-
True, if the bot can transfer and upgrade gifts received by the business account
final
- canTransferStars → bool
-
True, if the bot can transfer Telegram Stars received by the business account to account of the bot, or use them to upgrade and transfer gifts
final
- canViewGiftsAndStars → bool
-
True, if the bot can view gifts and Telegram Star amount owned by the business account
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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{bool? canReply, bool? canReadMessages, bool? canDeleteSentMessages, bool? canDeleteAllMessages, bool? canEditName, bool? canEditBio, bool? canEditProfilePhoto, bool? canEditUsername, bool? canViewGiftsAndStars, bool? canSellGifts, bool? canChangeGiftSettings, bool? canTransferAndUpgradeGifts, bool? canTransferStars, bool? canManageStories}) → BusinessBotRights -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
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.