|
| 1 | +<?php |
| 2 | + |
| 3 | +/** |
| 4 | + * This file is auto-generated. |
| 5 | + */ |
| 6 | + |
| 7 | +namespace Telepath\Telegram; |
| 8 | + |
| 9 | +use Telepath\Types\Type; |
| 10 | + |
| 11 | +/** |
| 12 | + * Represents the rights of a business bot. |
| 13 | + */ |
| 14 | +class BusinessBotRights extends Type |
| 15 | +{ |
| 16 | + /** <em>Optional</em>. <em>True</em>, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours */ |
| 17 | + public ?bool $can_reply = null; |
| 18 | + |
| 19 | + /** <em>Optional</em>. <em>True</em>, if the bot can mark incoming private messages as read */ |
| 20 | + public ?bool $can_read_messages = null; |
| 21 | + |
| 22 | + /** <em>Optional</em>. <em>True</em>, if the bot can delete messages sent by the bot */ |
| 23 | + public ?bool $can_delete_sent_messages = null; |
| 24 | + |
| 25 | + /** <em>Optional</em>. <em>True</em>, if the bot can delete all private messages in managed chats */ |
| 26 | + public ?bool $can_delete_all_messages = null; |
| 27 | + |
| 28 | + /** <em>Optional</em>. <em>True</em>, if the bot can edit the first and last name of the business account */ |
| 29 | + public ?bool $can_edit_name = null; |
| 30 | + |
| 31 | + /** <em>Optional</em>. <em>True</em>, if the bot can edit the bio of the business account */ |
| 32 | + public ?bool $can_edit_bio = null; |
| 33 | + |
| 34 | + /** <em>Optional</em>. <em>True</em>, if the bot can edit the profile photo of the business account */ |
| 35 | + public ?bool $can_edit_profile_photo = null; |
| 36 | + |
| 37 | + /** <em>Optional</em>. <em>True</em>, if the bot can edit the username of the business account */ |
| 38 | + public ?bool $can_edit_username = null; |
| 39 | + |
| 40 | + /** <em>Optional</em>. <em>True</em>, if the bot can change the privacy settings pertaining to gifts for the business account */ |
| 41 | + public ?bool $can_change_gift_settings = null; |
| 42 | + |
| 43 | + /** <em>Optional</em>. <em>True</em>, if the bot can view gifts and the amount of Telegram Stars owned by the business account */ |
| 44 | + public ?bool $can_view_gifts_and_stars = null; |
| 45 | + |
| 46 | + /** <em>Optional</em>. <em>True</em>, if the bot can convert regular gifts owned by the business account to Telegram Stars */ |
| 47 | + public ?bool $can_convert_gifts_to_stars = null; |
| 48 | + |
| 49 | + /** <em>Optional</em>. <em>True</em>, if the bot can transfer and upgrade gifts owned by the business account */ |
| 50 | + public ?bool $can_transfer_and_upgrade_gifts = null; |
| 51 | + |
| 52 | + /** <em>Optional</em>. <em>True</em>, if the bot can transfer Telegram Stars received by the business account to its own account, or use them to upgrade and transfer gifts */ |
| 53 | + public ?bool $can_transfer_stars = null; |
| 54 | + |
| 55 | + /** <em>Optional</em>. <em>True</em>, if the bot can post, edit and delete stories on behalf of the business account */ |
| 56 | + public ?bool $can_manage_stories = null; |
| 57 | + |
| 58 | + /** |
| 59 | + * @param bool $can_reply <em>Optional</em>. <em>True</em>, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours |
| 60 | + * @param bool $can_read_messages <em>Optional</em>. <em>True</em>, if the bot can mark incoming private messages as read |
| 61 | + * @param bool $can_delete_sent_messages <em>Optional</em>. <em>True</em>, if the bot can delete messages sent by the bot |
| 62 | + * @param bool $can_delete_all_messages <em>Optional</em>. <em>True</em>, if the bot can delete all private messages in managed chats |
| 63 | + * @param bool $can_edit_name <em>Optional</em>. <em>True</em>, if the bot can edit the first and last name of the business account |
| 64 | + * @param bool $can_edit_bio <em>Optional</em>. <em>True</em>, if the bot can edit the bio of the business account |
| 65 | + * @param bool $can_edit_profile_photo <em>Optional</em>. <em>True</em>, if the bot can edit the profile photo of the business account |
| 66 | + * @param bool $can_edit_username <em>Optional</em>. <em>True</em>, if the bot can edit the username of the business account |
| 67 | + * @param bool $can_change_gift_settings <em>Optional</em>. <em>True</em>, if the bot can change the privacy settings pertaining to gifts for the business account |
| 68 | + * @param bool $can_view_gifts_and_stars <em>Optional</em>. <em>True</em>, if the bot can view gifts and the amount of Telegram Stars owned by the business account |
| 69 | + * @param bool $can_convert_gifts_to_stars <em>Optional</em>. <em>True</em>, if the bot can convert regular gifts owned by the business account to Telegram Stars |
| 70 | + * @param bool $can_transfer_and_upgrade_gifts <em>Optional</em>. <em>True</em>, if the bot can transfer and upgrade gifts owned by the business account |
| 71 | + * @param bool $can_transfer_stars <em>Optional</em>. <em>True</em>, if the bot can transfer Telegram Stars received by the business account to its own account, or use them to upgrade and transfer gifts |
| 72 | + * @param bool $can_manage_stories <em>Optional</em>. <em>True</em>, if the bot can post, edit and delete stories on behalf of the business account |
| 73 | + */ |
| 74 | + public static function make( |
| 75 | + ?bool $can_reply = null, |
| 76 | + ?bool $can_read_messages = null, |
| 77 | + ?bool $can_delete_sent_messages = null, |
| 78 | + ?bool $can_delete_all_messages = null, |
| 79 | + ?bool $can_edit_name = null, |
| 80 | + ?bool $can_edit_bio = null, |
| 81 | + ?bool $can_edit_profile_photo = null, |
| 82 | + ?bool $can_edit_username = null, |
| 83 | + ?bool $can_change_gift_settings = null, |
| 84 | + ?bool $can_view_gifts_and_stars = null, |
| 85 | + ?bool $can_convert_gifts_to_stars = null, |
| 86 | + ?bool $can_transfer_and_upgrade_gifts = null, |
| 87 | + ?bool $can_transfer_stars = null, |
| 88 | + ?bool $can_manage_stories = null, |
| 89 | + ): static { |
| 90 | + return new static([ |
| 91 | + 'can_reply' => $can_reply, |
| 92 | + 'can_read_messages' => $can_read_messages, |
| 93 | + 'can_delete_sent_messages' => $can_delete_sent_messages, |
| 94 | + 'can_delete_all_messages' => $can_delete_all_messages, |
| 95 | + 'can_edit_name' => $can_edit_name, |
| 96 | + 'can_edit_bio' => $can_edit_bio, |
| 97 | + 'can_edit_profile_photo' => $can_edit_profile_photo, |
| 98 | + 'can_edit_username' => $can_edit_username, |
| 99 | + 'can_change_gift_settings' => $can_change_gift_settings, |
| 100 | + 'can_view_gifts_and_stars' => $can_view_gifts_and_stars, |
| 101 | + 'can_convert_gifts_to_stars' => $can_convert_gifts_to_stars, |
| 102 | + 'can_transfer_and_upgrade_gifts' => $can_transfer_and_upgrade_gifts, |
| 103 | + 'can_transfer_stars' => $can_transfer_stars, |
| 104 | + 'can_manage_stories' => $can_manage_stories, |
| 105 | + ]); |
| 106 | + } |
| 107 | +} |
0 commit comments