Package org.drinkless.tdlib
Class TdApi.BusinessBotRights
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.BusinessBotRights
- Enclosing class:
- TdApi
Describes rights of a business bot.
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
True, if the bot can change gift receiving settings of the business account.boolean
True, if the bot can delete any message.boolean
True, if the bot can delete sent messages.boolean
True, if the bot can edit bio of the business account.boolean
True, if the bot can edit name of the business account.boolean
True, if the bot can edit profile photo of the business account.boolean
True, if the bot can edit username of the business account.boolean
True, if the bot can post, edit and delete stories.boolean
True, if the bot can mark incoming private messages as read.boolean
True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours.boolean
True, if the bot can sell regular gifts received by the business account.boolean
True, if the bot can transfer and upgrade gifts received by the business account.boolean
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.boolean
True, if the bot can view gifts and amount of Telegram Stars owned by the business account.static final int
Identifier uniquely determining type of the object. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes rights of a business bot.BusinessBotRights
(boolean canReply, boolean canReadMessages, boolean canDeleteSentMessages, boolean canDeleteAllMessages, boolean canEditName, boolean canEditBio, boolean canEditProfilePhoto, boolean canEditUsername, boolean canViewGiftsAndStars, boolean canSellGifts, boolean canChangeGiftSettings, boolean canTransferAndUpgradeGifts, boolean canTransferStars, boolean canManageStories) Describes rights of a business bot. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
canReply
public boolean canReplyTrue, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours. -
canReadMessages
public boolean canReadMessagesTrue, if the bot can mark incoming private messages as read. -
canDeleteSentMessages
public boolean canDeleteSentMessagesTrue, if the bot can delete sent messages. -
canDeleteAllMessages
public boolean canDeleteAllMessagesTrue, if the bot can delete any message. -
canEditName
public boolean canEditNameTrue, if the bot can edit name of the business account. -
canEditBio
public boolean canEditBioTrue, if the bot can edit bio of the business account. -
canEditProfilePhoto
public boolean canEditProfilePhotoTrue, if the bot can edit profile photo of the business account. -
canEditUsername
public boolean canEditUsernameTrue, if the bot can edit username of the business account. -
canViewGiftsAndStars
public boolean canViewGiftsAndStarsTrue, if the bot can view gifts and amount of Telegram Stars owned by the business account. -
canSellGifts
public boolean canSellGiftsTrue, if the bot can sell regular gifts received by the business account. -
canChangeGiftSettings
public boolean canChangeGiftSettingsTrue, if the bot can change gift receiving settings of the business account. -
canTransferAndUpgradeGifts
public boolean canTransferAndUpgradeGiftsTrue, if the bot can transfer and upgrade gifts received by the business account. -
canTransferStars
public boolean canTransferStarsTrue, 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. -
canManageStories
public boolean canManageStoriesTrue, if the bot can post, edit and delete stories. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
BusinessBotRights
public BusinessBotRights()Describes rights of a business bot. -
BusinessBotRights
public BusinessBotRights(boolean canReply, boolean canReadMessages, boolean canDeleteSentMessages, boolean canDeleteAllMessages, boolean canEditName, boolean canEditBio, boolean canEditProfilePhoto, boolean canEditUsername, boolean canViewGiftsAndStars, boolean canSellGifts, boolean canChangeGiftSettings, boolean canTransferAndUpgradeGifts, boolean canTransferStars, boolean canManageStories) Describes rights of a business bot.- Parameters:
canReply
- True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours.canReadMessages
- True, if the bot can mark incoming private messages as read.canDeleteSentMessages
- True, if the bot can delete sent messages.canDeleteAllMessages
- True, if the bot can delete any message.canEditName
- True, if the bot can edit name of the business account.canEditBio
- True, if the bot can edit bio of the business account.canEditProfilePhoto
- True, if the bot can edit profile photo of the business account.canEditUsername
- True, if the bot can edit username of the business account.canViewGiftsAndStars
- True, if the bot can view gifts and amount of Telegram Stars owned by the business account.canSellGifts
- True, if the bot can sell regular gifts received by the business account.canChangeGiftSettings
- True, if the bot can change gift receiving settings of the business account.canTransferAndUpgradeGifts
- True, if the bot can transfer and upgrade gifts received by the business account.canTransferStars
- 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.canManageStories
- True, if the bot can post, edit and delete stories.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-