8000 [AUTO] Update Telegram Bot API by github-actions[bot] · Pull Request #120 · westacks/telebot · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

[AUTO] Update Telegram Bot API #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api.json
Original file line number Diff line number Diff line change
Expand Up @@ -4861,7 +4861,7 @@
"deleteBusinessMessages": {
"href": "https://core.telegram.org/bots/api#deletebusinessmessages",
"description": [
"Delete messages on behalf of a business account. Requires the can_delete_outgoing_messages business bot right to delete messages sent by the bot itself, or the can_delete_all_messages business bot right to delete any message. Returns True on success."
"Delete messages on behalf of a business account. Requires the can_delete_sent_messages business bot right to delete messages sent by the bot itself, or the can_delete_all_messages business bot right to delete any message. Returns True on success."
],
"returns": [
"True"
Expand Down Expand Up @@ -13003,7 +13003,7 @@
],
"description": "Optional. True, if the bot can mark incoming private messages as read"
},
"can_delete_outgoing_messages": {
"can_delete_sent_messages": {
"type": [
"True"
],
Expand Down
2 changes: 1 addition & 1 deletion src/Foundation/HasTelegramMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@
* - _int_ `$message_id` __Required: Yes__. Unique identifier of the message to mark as read
*
*
* @method PromiseInterface|true deleteBusinessMessages(...$parameters) Delete messages on behalf of a business account. Requires the can_delete_outgoing_messages business bot right to delete messages sent by the bot itself, or the can_delete_all_messages business bot right to delete any message. Returns True on success.
* @method PromiseInterface|true deleteBusinessMessages(...$parameters) Delete messages on behalf of a business account. Requires the can_delete_sent_messages business bot right to delete messages sent by the bot itself, or the can_delete_all_messages business bot right to delete any message. Returns True on success.
*
* {@see https://core.telegram.org/bots/api#deletebusinessmessages}
*
Expand Down
2 changes: 1 addition & 1 deletion src/Methods/DeleteBusinessMessagesMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use WeStacks\TeleBot\Foundation\TelegramMethod;

/**
* Delete messages on behalf of a business account. Requires the can_delete_outgoing_messages business bot right to delete messages sent by the bot itself, or the can_delete_all_messages business bot right to delete any message. Returns True on success.
* Delete messages on behalf of a business account. Requires the can_delete_sent_messages business bot right to delete messages sent by the bot itself, or the can_delete_all_messages business bot right to delete any message. Returns True on success.
*
* @property-read string $business_connection_id Unique identifier of the business connection on behalf of which to delete the messages
* @property-read int[] $message_ids A JSON-serialized list of 1-100 identifiers of messages to delete. All messages must be from the same chat. See deleteMessage for limitations on which messages can be deleted
Expand Down
6 changes: 4 additions & 2 deletions src/Objects/BusinessBotRights.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Represents the rights of a business bot.
* @property-read ?true $can_reply Optional. True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours
* @property-read ?true $can_read_messages Optional. True, if the bot can mark incoming private messages as read
* @property-read ?true $can_delete_outgoing_messages Optional. True, if the bot can delete messages sent by the bot
* @property-read ?true $can_delete_sent_messages Optional. True, if the bot can delete messages sent by the bot
* @property-read ?true $can_delete_all_messages Optional. True, if the bot can delete all private messages in managed chats
* @property-read ?true $can_edit_name Optional. True, if the bot can edit the first and last name of the business account
* @property-read ?true $can_edit_bio Optional. True, if the bot can edit the bio of the business account
Expand All @@ -25,10 +25,12 @@
*/
class BusinessBotRights extends TelegramObject
{
public ?true $can_delete_outgoing_messages;

public function __construct(
public readonly ?true $can_reply,
public readonly ?true $can_read_messages,
public readonly ?true $can_delete_outgoing_messages,
public readonly ?true $can_delete_sent_messages,
public readonly ?true $can_delete_all_messages,
public readonly ?true $can_edit_name,
public readonly ?true $can_edit_bio,
Expand Down
0