Skip to content

Commit 3d9a555

Browse files
committed
Bump to layer 216
1 parent 108c0f0 commit 3d9a555

File tree

20 files changed

+9011
-8248
lines changed

20 files changed

+9011
-8248
lines changed

README.md

Lines changed: 77 additions & 72 deletions
Large diffs are not rendered by default.

docs

Submodule docs updated 357 files

extracted.json

Lines changed: 8398 additions & 7765 deletions
Large diffs are not rendered by default.

src/Lang.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ final class Lang
2929
'it' => 100,
3030
'ckb' => 74,
3131
'fa' => 100,
32+
'pl' => 1,
3233
'pt' => 81,
3334
'ru' => 82,
3435
'uz' => 100,

src/Namespace/Account.php

Lines changed: 36 additions & 36 deletions
Large diffs are not rendered by default.

src/Namespace/Auth.php

Lines changed: 12 additions & 2 deletions
Large diffs are not rendered by default.

src/Namespace/Bots.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -348,22 +348,22 @@ public function getAdminedBots(?int $floodWaitLimit = null, ?string $queueId = n
348348
public function updateStarRefProgram(array|int|string|null $bot = null, int|null $commission_permille = 0, int|null $duration_months = null, ?int $floodWaitLimit = null, ?string $queueId = null, ?\Amp\Cancellation $cancellation = null): array;
349349

350350
/**
351+
* Verify a user or chat [on behalf of an organization »](https://core.telegram.org/api/bots/verification).
351352
*
352-
*
353-
* @param bool $enabled
354-
* @param array|int|string $bot @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html
355-
* @param array|int|string $peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html
356-
* @param string $custom_description
353+
* @param bool $enabled If set, adds the verification; otherwise removes verification.
354+
* @param array|int|string $bot Must **not** be set if invoked by a bot, **must** be set to the ID of an owned bot if invoked by a user. @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html
355+
* @param array|int|string $peer The peer to verify @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html
356+
* @param string $custom_description Custom description for the verification, the UTF-8 length limit for this field is contained in [bot\_verification\_description\_length\_limit »](https://core.telegram.org/api/config#bot-verification-description-length-limit). <br>If not set, `Was verified by organization "organization_name"` will be used as description.
357357
* @param ?int $floodWaitLimit Can be used to specify a custom flood wait limit: if a FLOOD_WAIT_ rate limiting error is received with a waiting period bigger than this integer, an RPCErrorException will be thrown; otherwise, MadelineProto will simply wait for the specified amount of time. Defaults to the value specified in the settings: https://docs.madelineproto.xyz/PHP/danog/MadelineProto/Settings/RPC.html#setfloodtimeout-int-floodtimeout-self
358358
* @param ?string $queueId If specified, ensures strict server-side execution order of concurrent calls with the same queue ID.
359359
* @param ?\Amp\Cancellation $cancellation Cancellation
360360
*/
361361
public function setCustomVerification(bool|null $enabled = null, array|int|string|null $bot = null, array|int|string|null $peer = null, string|null $custom_description = null, ?int $floodWaitLimit = null, ?string $queueId = null, ?\Amp\Cancellation $cancellation = null): bool;
362362

363363
/**
364+
* Obtain a list of similarly themed bots, selected based on similarities in their subscriber bases, see [here »](https://core.telegram.org/api/recommend) for more info.
364365
*
365-
*
366-
* @param array|int|string $bot @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html
366+
* @param array|int|string $bot The method will return bots related to the passed bot. @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html
367367
* @param ?int $floodWaitLimit Can be used to specify a custom flood wait limit: if a FLOOD_WAIT_ rate limiting error is received with a waiting period bigger than this integer, an RPCErrorException will be thrown; otherwise, MadelineProto will simply wait for the specified amount of time. Defaults to the value specified in the settings: https://docs.madelineproto.xyz/PHP/danog/MadelineProto/Settings/RPC.html#setfloodtimeout-int-floodtimeout-self
368368
* @param ?string $queueId If specified, ensures strict server-side execution order of concurrent calls with the same queue ID.
369369
* @param ?\Amp\Cancellation $cancellation Cancellation

src/Namespace/Channels.php

Lines changed: 29 additions & 116 deletions
Large diffs are not rendered by default.

src/Namespace/Contacts.php

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,13 @@ public function toggleTopPeers(bool $enabled, ?int $floodWaitLimit = null, ?stri
196196
* @param string $first_name First name
197197
* @param string $last_name Last name
198198
* @param string $phone User's phone number, may be omitted to simply add the user to the contact list, without a phone number.
199+
* @param array{_: 'textWithEntities', text?: string, entities?: list<array{_: 'messageEntityUnknown', offset?: int, length?: int}|array{_: 'messageEntityMention', offset?: int, length?: int}|array{_: 'messageEntityHashtag', offset?: int, length?: int}|array{_: 'messageEntityBotCommand', offset?: int, length?: int}|array{_: 'messageEntityUrl', offset?: int, length?: int}|array{_: 'messageEntityEmail', offset?: int, length?: int}|array{_: 'messageEntityBold', offset?: int, length?: int}|array{_: 'messageEntityItalic', offset?: int, length?: int}|array{_: 'messageEntityCode', offset?: int, length?: int}|array{_: 'messageEntityPre', offset?: int, length?: int, language?: string}|array{_: 'messageEntityTextUrl', offset?: int, length?: int, url?: string}|array{_: 'messageEntityMentionName', offset?: int, length?: int, user_id?: int}|array{_: 'inputMessageEntityMentionName', offset?: int, length?: int, user_id?: array|int|string}|array{_: 'messageEntityPhone', offset?: int, length?: int}|array{_: 'messageEntityCashtag', offset?: int, length?: int}|array{_: 'messageEntityUnderline', offset?: int, length?: int}|array{_: 'messageEntityStrike', offset?: int, length?: int}|array{_: 'messageEntityBankCard', offset?: int, length?: int}|array{_: 'messageEntitySpoiler', offset?: int, length?: int}|array{_: 'messageEntityCustomEmoji', offset?: int, length?: int, document_id?: int}|array{_: 'messageEntityBlockquote', collapsed?: bool, offset?: int, length?: int}|array{_: 'messageEntityBlockquote', offset?: int, length?: int}>} $note @see https://docs.madelineproto.xyz/API_docs/types/TextWithEntities.html
199200
* @param ?int $floodWaitLimit Can be used to specify a custom flood wait limit: if a FLOOD_WAIT_ rate limiting error is received with a waiting period bigger than this integer, an RPCErrorException will be thrown; otherwise, MadelineProto will simply wait for the specified amount of time. Defaults to the value specified in the settings: https://docs.madelineproto.xyz/PHP/danog/MadelineProto/Settings/RPC.html#setfloodtimeout-int-floodtimeout-self
200201
* @param ?string $queueId If specified, ensures strict server-side execution order of concurrent calls with the same queue ID.
201202
* @param ?\Amp\Cancellation $cancellation Cancellation
202203
* @return array @see https://docs.madelineproto.xyz/API_docs/types/Updates.html
203204
*/
204-
public function addContact(bool|null $add_phone_privacy_exception = null, array|int|string|null $id = null, string|null $first_name = '', string|null $last_name = '', string|null $phone = '', ?int $floodWaitLimit = null, ?string $queueId = null, ?\Amp\Cancellation $cancellation = null): array;
205+
public function addContact(bool|null $add_phone_privacy_exception = null, array|int|string|null $id = null, string|null $first_name = '', string|null $last_name = '', string|null $phone = '', array|null $note = null, ?int $floodWaitLimit = null, ?string $queueId = null, ?\Amp\Cancellation $cancellation = null): array;
205206

206207
/**
207208
* If the [add contact action bar is active](https://core.telegram.org/api/action-bar#add-contact), add that user as contact.
@@ -308,12 +309,24 @@ public function setBlocked(bool|null $my_stories_from = null, array $id = [], in
308309
public function getBirthdays(?int $floodWaitLimit = null, ?string $queueId = null, ?\Amp\Cancellation $cancellation = null): array;
309310

310311
/**
312+
* Obtain a list of sponsored peer search results for a given query.
311313
*
312-
*
314+
* @param string $q The query
313315
* @param ?int $floodWaitLimit Can be used to specify a custom flood wait limit: if a FLOOD_WAIT_ rate limiting error is received with a waiting period bigger than this integer, an RPCErrorException will be thrown; otherwise, MadelineProto will simply wait for the specified amount of time. Defaults to the value specified in the settings: https://docs.madelineproto.xyz/PHP/danog/MadelineProto/Settings/RPC.html#setfloodtimeout-int-floodtimeout-self
314316
* @param ?string $queueId If specified, ensures strict server-side execution order of concurrent calls with the same queue ID.
315317
* @param ?\Amp\Cancellation $cancellation Cancellation
316318
* @return array{_: 'contacts.sponsoredPeersEmpty'}|array{_: 'contacts.sponsoredPeers', peers: list<array{_: 'sponsoredPeer', peer: array|int|string, random_id: string, sponsor_info?: string, additional_info?: string}>, chats: list<array|int|string>, users: list<array|int|string>} @see https://docs.madelineproto.xyz/API_docs/types/contacts.SponsoredPeers.html
317319
*/
318320
public function getSponsoredPeers(string|null $q = '', ?int $floodWaitLimit = null, ?string $queueId = null, ?\Amp\Cancellation $cancellation = null): array;
321+
322+
/**
323+
*
324+
*
325+
* @param array{_: 'textWithEntities', text?: string, entities?: list<array{_: 'messageEntityUnknown', offset?: int, length?: int}|array{_: 'messageEntityMention', offset?: int, length?: int}|array{_: 'messageEntityHashtag', offset?: int, length?: int}|array{_: 'messageEntityBotCommand', offset?: int, length?: int}|array{_: 'messageEntityUrl', offset?: int, length?: int}|array{_: 'messageEntityEmail', offset?: int, length?: int}|array{_: 'messageEntityBold', offset?: int, length?: int}|array{_: 'messageEntityItalic', offset?: int, length?: int}|array{_: 'messageEntityCode', offset?: int, length?: int}|array{_: 'messageEntityPre', offset?: int, length?: int, language?: string}|array{_: 'messageEntityTextUrl', offset?: int, length?: int, url?: string}|array{_: 'messageEntityMentionName', offset?: int, length?: int, user_id?: int}|array{_: 'inputMessageEntityMentionName', offset?: int, length?: int, user_id?: array|int|string}|array{_: 'messageEntityPhone', offset?: int, length?: int}|array{_: 'messageEntityCashtag', offset?: int, length?: int}|array{_: 'messageEntityUnderline', offset?: int, length?: int}|array{_: 'messageEntityStrike', offset?: int, length?: int}|array{_: 'messageEntityBankCard', offset?: int, length?: int}|array{_: 'messageEntitySpoiler', offset?: int, length?: int}|array{_: 'messageEntityCustomEmoji', offset?: int, length?: int, document_id?: int}|array{_: 'messageEntityBlockquote', collapsed?: bool, offset?: int, length?: int}|array{_: 'messageEntityBlockquote', offset?: int, length?: int}>} $note @see https://docs.madelineproto.xyz/API_docs/types/TextWithEntities.html
326+
* @param array|int|string $id @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html
327+
* @param ?int $floodWaitLimit Can be used to specify a custom flood wait limit: if a FLOOD_WAIT_ rate limiting error is received with a waiting period bigger than this integer, an RPCErrorException will be thrown; otherwise, MadelineProto will simply wait for the specified amount of time. Defaults to the value specified in the settings: https://docs.madelineproto.xyz/PHP/danog/MadelineProto/Settings/RPC.html#setfloodtimeout-int-floodtimeout-self
328+
* @param ?string $queueId If specified, ensures strict server-side execution order of concurrent calls with the same queue ID.
329+
* @param ?\Amp\Cancellation $cancellation Cancellation
330+
*/
331+
public function updateContactNote(array $note, array|int|string|null $id = null, ?int $floodWaitLimit = null, ?string $queueId = null, ?\Amp\Cancellation $cancellation = null): bool;
319332
}

0 commit comments

Comments
 (0)