class Tourmaline::BusinessBotRights

Overview

Represents the rights of a business bot.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(can_reply : Bool | Nil = nil, can_read_messages : Bool | Nil = nil, can_delete_sent_messages : Bool | Nil = nil, can_delete_all_messages : Bool | Nil = nil, can_edit_name : Bool | Nil = nil, can_edit_bio : Bool | Nil = nil, can_edit_profile_photo : Bool | Nil = nil, can_edit_username : Bool | Nil = nil, can_change_gift_settings : Bool | Nil = nil, can_view_gifts_and_stars : Bool | Nil = nil, can_convert_gifts_to_stars : Bool | Nil = nil, can_transfer_and_upgrade_gifts : Bool | Nil = nil, can_transfer_stars : Bool | Nil = nil, can_manage_stories : Bool | Nil = nil) #

[View source]

Instance Method Detail

def can_change_gift_settings=(can_change_gift_settings : Bool | Nil) #

Optional. True, if the bot can change the privacy settings pertaining to gifts for the business account


[View source]
def can_change_gift_settings? : Bool | Nil #

Optional. True, if the bot can change the privacy settings pertaining to gifts for the business account


[View source]
def can_convert_gifts_to_stars=(can_convert_gifts_to_stars : Bool | Nil) #

Optional. True, if the bot can convert regular gifts owned by the business account to Telegram Stars


[View source]
def can_convert_gifts_to_stars? : Bool | Nil #

Optional. True, if the bot can convert regular gifts owned by the business account to Telegram Stars


[View source]
def can_delete_all_messages=(can_delete_all_messages : Bool | Nil) #

Optional. True, if the bot can delete all private messages in managed chats


[View source]
def can_delete_all_messages? : Bool | Nil #

Optional. True, if the bot can delete all private messages in managed chats


[View source]
def can_delete_sent_messages=(can_delete_sent_messages : Bool | Nil) #

Optional. True, if the bot can delete messages sent by the bot


[View source]
def can_delete_sent_messages? : Bool | Nil #

Optional. True, if the bot can delete messages sent by the bot


[View source]
def can_edit_bio=(can_edit_bio : Bool | Nil) #

Optional. True, if the bot can edit the bio of the business account


[View source]
def can_edit_bio? : Bool | Nil #

Optional. True, if the bot can edit the bio of the business account


[View source]
def can_edit_name=(can_edit_name : Bool | Nil) #

Optional. True, if the bot can edit the first and last name of the business account


[View source]
def can_edit_name? : Bool | Nil #

Optional. True, if the bot can edit the first and last name of the business account


[View source]
def can_edit_profile_photo=(can_edit_profile_photo : Bool | Nil) #

Optional. True, if the bot can edit the profile photo of the business account


[View source]
def can_edit_profile_photo? : Bool | Nil #

Optional. True, if the bot can edit the profile photo of the business account


[View source]
def can_edit_username=(can_edit_username : Bool | Nil) #

Optional. True, if the bot can edit the username of the business account


[View source]
def can_edit_username? : Bool | Nil #

Optional. True, if the bot can edit the username of the business account


[View source]
def can_manage_stories=(can_manage_stories : Bool | Nil) #

Optional. True, if the bot can post, edit and delete stories on behalf of the business account


[View source]
def can_manage_stories? : Bool | Nil #

Optional. True, if the bot can post, edit and delete stories on behalf of the business account


[View source]
def can_read_messages=(can_read_messages : Bool | Nil) #

Optional. True, if the bot can mark incoming private messages as read


[View source]
def can_read_messages? : Bool | Nil #

Optional. True, if the bot can mark incoming private messages as read


[View source]
def can_reply=(can_reply : Bool | Nil) #

Optional. True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours


[View source]
def can_reply? : Bool | Nil #

Optional. True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours


[View source]
def can_transfer_and_upgrade_gifts=(can_transfer_and_upgrade_gifts : Bool | Nil) #

Optional. True, if the bot can transfer and upgrade gifts owned by the business account


[View source]
def can_transfer_and_upgrade_gifts? : Bool | Nil #

Optional. True, if the bot can transfer and upgrade gifts owned by the business account


[View source]
def can_transfer_stars=(can_transfer_stars : Bool | Nil) #

Optional. 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


[View source]
def can_transfer_stars? : Bool | Nil #

Optional. 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


[View source]
def can_view_gifts_and_stars=(can_view_gifts_and_stars : Bool | Nil) #

Optional. True, if the bot can view gifts and the amount of Telegram Stars owned by the business account


[View source]
def can_view_gifts_and_stars? : Bool | Nil #

Optional. True, if the bot can view gifts and the amount of Telegram Stars owned by the business account


[View source]