class
Hamilton::Types::BusinessBotRights
- Hamilton::Types::BusinessBotRights
- Reference
- Object
Overview
Represents the rights of a business bot.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/business_bot_rights.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#can_change_gift_settings : Bool | Nil
True, if the bot can change the privacy settings pertaining to gifts for the business account.
-
#can_change_gift_settings=(can_change_gift_settings : Bool | Nil)
True, if the bot can change the privacy settings pertaining to gifts for the business account.
-
#can_convert_gifts_to_stars : Bool | Nil
True, if the bot can convert regular gifts owned by the business account to Telegram Stars.
-
#can_convert_gifts_to_stars=(can_convert_gifts_to_stars : Bool | Nil)
True, if the bot can convert regular gifts owned by the business account to Telegram Stars.
-
#can_delete_all_messages : Bool | Nil
True, if the bot can delete all private messages in managed chats.
-
#can_delete_all_messages=(can_delete_all_messages : Bool | Nil)
True, if the bot can delete all private messages in managed chats.
-
#can_delete_sent_messages : Bool | Nil
True, if the bot can delete messages sent by the bot.
-
#can_delete_sent_messages=(can_delete_sent_messages : Bool | Nil)
True, if the bot can delete messages sent by the bot.
-
#can_edit_bio : Bool | Nil
True, if the bot can edit the bio of the business account.
-
#can_edit_bio=(can_edit_bio : Bool | Nil)
True, if the bot can edit the bio of the business account.
-
#can_edit_name : Bool | Nil
True, if the bot can edit the first and last name of the business account.
-
#can_edit_name=(can_edit_name : Bool | Nil)
True, if the bot can edit the first and last name of the business account.
-
#can_edit_profile_photo : Bool | Nil
True, if the bot can edit the profile photo of the business account.
-
#can_edit_profile_photo=(can_edit_profile_photo : Bool | Nil)
True, if the bot can edit the profile photo of the business account.
-
#can_edit_username : Bool | Nil
True, if the bot can edit the username of the business account.
-
#can_edit_username=(can_edit_username : Bool | Nil)
True, if the bot can edit the username of the business account.
-
#can_manage_stories : Bool | Nil
True, if the bot can post, edit and delete stories on behalf of the business account.
-
#can_manage_stories=(can_manage_stories : Bool | Nil)
True, if the bot can post, edit and delete stories on behalf of the business account.
-
#can_read_messages : Bool | Nil
True, if the bot can mark incoming private messages as read.
-
#can_read_messages=(can_read_messages : Bool | Nil)
True, if the bot can mark incoming private messages as read.
-
#can_reply : Bool | Nil
True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours.
-
#can_reply=(can_reply : Bool | Nil)
True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours.
-
#can_transfer_and_upgrade_gifts : Bool | Nil
True, if the bot can transfer and upgrade gifts owned by the business account.
-
#can_transfer_and_upgrade_gifts=(can_transfer_and_upgrade_gifts : Bool | Nil)
True, if the bot can transfer and upgrade gifts owned by the business account.
-
#can_transfer_stars : Bool | Nil
True, if the bot can transfer Telegram Stars received by the business account to its own account, or use them to upgrade and transfer gifts.
-
#can_transfer_stars=(can_transfer_stars : Bool | Nil)
True, if the bot can transfer Telegram Stars received by the business account to its own account, or use them to upgrade and transfer gifts.
-
#can_view_gifts_and_stars : Bool | Nil
True, if the bot can view gifts and the amount of Telegram Stars owned by the business account.
-
#can_view_gifts_and_stars=(can_view_gifts_and_stars : Bool | Nil)
True, if the bot can view gifts and the amount of Telegram Stars owned by the business account.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
True, if the bot can change the privacy settings pertaining to gifts for the business account.
True, if the bot can change the privacy settings pertaining to gifts for the business account.
True, if the bot can convert regular gifts owned by the business account to Telegram Stars.
True, if the bot can convert regular gifts owned by the business account to Telegram Stars.
True, if the bot can delete all private messages in managed chats.
True, if the bot can delete all private messages in managed chats.
True, if the bot can delete messages sent by the bot.
True, if the bot can edit the bio of the business account.
True, if the bot can edit the first and last name of the business account.
True, if the bot can edit the first and last name of the business account.
True, if the bot can edit the profile photo of the business account.
True, if the bot can edit the profile photo of the business account.
True, if the bot can edit the username of the business account.
True, if the bot can edit the username of the business account.
True, if the bot can post, edit and delete stories on behalf of the business account.
True, if the bot can post, edit and delete stories on behalf of the business account.
True, if the bot can mark incoming private messages as read.
True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours.
True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours.
True, if the bot can transfer and upgrade gifts owned by the business account.
True, if the bot can transfer and upgrade gifts owned by the business account.
True, if the bot can transfer Telegram Stars received by the business account to its own account, or use them to upgrade and transfer gifts.
True, if the bot can transfer Telegram Stars received by the business account to its own account, or use them to upgrade and transfer gifts.
True, if the bot can view gifts and the amount of Telegram Stars owned by the business account.
True, if the bot can view gifts and the amount of Telegram Stars owned by the business account.