|
27491 | 27491 | "name": "restrictionReason",
|
27492 | 27492 | "description": [
|
27493 | 27493 | "Restriction reason.",
|
27494 |
| - "Contains the reason why access to a certain object must be restricted. Clients are supposed to deny access to the channel if the platform field is equal to all or to the current platform (ios, android, wp, etc.). Platforms can be concatenated (ios-android, ios-wp), unknown platforms are to be ignored. The text is the error message that should be shown to the user." |
| 27494 | + "Contains the reason why access to a certain object must be restricted. Clients are supposed to deny access to the channel if the platform field is equal to all or to the current platform (ios, android, wp, etc.). Platforms can be concatenated (ios-android, ios-wp), unknown platforms are to be ignored. The text is the error message that should be shown to the user.", |
| 27495 | + "The restriction_add_platforms »¹ client configuration parameter contains an array of platform identifiers that must also be treated as our own, in additional to the one hardcoded in the client." |
| 27496 | + ], |
| 27497 | + "links": [ |
| 27498 | + "https://core.telegram.org/api/config#restriction-add-platforms" |
27495 | 27499 | ],
|
27496 | 27500 | "fields": {
|
27497 | 27501 | "platform": {
|
|
27500 | 27504 | },
|
27501 | 27505 | "reason": {
|
27502 | 27506 | "name": "reason",
|
27503 |
| - "description": "Restriction reason (porno, terms, etc.)" |
| 27507 | + "description": "Restriction reason (porno, terms, etc.). Ignore this restriction reason if it is contained in the ignore_restriction_reasons »¹ client configuration parameter.", |
| 27508 | + "links": [ |
| 27509 | + "https://core.telegram.org/api/config#ignore-restriction-reasons" |
| 27510 | + ] |
27504 | 27511 | },
|
27505 | 27512 | "text": {
|
27506 | 27513 | "name": "text",
|
|
28711 | 28718 | },
|
28712 | 28719 | "birthday": {
|
28713 | 28720 | "name": "birthday",
|
28714 |
| - "description": " " |
| 28721 | + "description": "Whether this is a birthday-themed gift" |
28715 | 28722 | },
|
28716 | 28723 | "convert_stars": {
|
28717 | 28724 | "name": "convert_stars",
|
|
36835 | 36842 | },
|
36836 | 36843 | "type": {
|
36837 | 36844 | "name": "type",
|
36838 |
| - "description": "Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else, see here »¹ for a full list.", |
36839 |
| - "links": [ |
36840 |
| - "https://github.com/telegramdesktop/tdesktop/blob/4f7a124f3e85f3f61d862b94fb5a45236976f38f/Telegram/SourceFiles/data/data_web_page.cpp#L127" |
36841 |
| - ] |
| 36845 | + "description": "Type of the web page. One of the following: - video- gif- photo- document- profile- telegram_background- telegram_theme- telegram_story- telegram_channel- telegram_channel_request- telegram_megagroup- telegram_chat- telegram_megagroup_request- telegram_chat_request- telegram_album- telegram_message- telegram_bot- telegram_voicechat- telegram_livestream- telegram_user- telegram_botapp- telegram_channel_boost- telegram_group_boost- telegram_giftcode- telegram_stickerset" |
36842 | 36846 | },
|
36843 | 36847 | "url": {
|
36844 | 36848 | "name": "url",
|
|
55179 | 55183 | }
|
55180 | 55184 | },
|
55181 | 55185 | "errors": [
|
| 55186 | + { |
| 55187 | + "code": 400, |
| 55188 | + "type": "ID_EXPIRED", |
| 55189 | + "description": "The passed prepared inline message ID has expired." |
| 55190 | + }, |
55182 | 55191 | {
|
55183 | 55192 | "code": 400,
|
55184 | 55193 | "type": "ID_INVALID",
|
|
58258 | 58267 | },
|
58259 | 58268 | "hash": {
|
58260 | 58269 | "name": "hash",
|
58261 |
| - "description": "Hash used for caching, for more info click here¹.", |
| 58270 | + "description": "Hash used for caching, for more info click here¹. The hash may be generated locally by using the ids of the returned or stored sticker document²s.", |
58262 | 58271 | "links": [
|
58263 |
| - "https://core.telegram.org/api/offsets#hash-generation" |
| 58272 | + "https://core.telegram.org/api/offsets#hash-generation", |
| 58273 | + "https://core.telegram.org/constructor/document" |
58264 | 58274 | ]
|
58265 | 58275 | },
|
58266 | 58276 | "lang_code": {
|
|
62337 | 62347 | "type": "USER_BANNED_IN_CHANNEL",
|
62338 | 62348 | "description": "You're banned from sending messages in supergroups/channels."
|
62339 | 62349 | },
|
| 62350 | + { |
| 62351 | + "code": 400, |
| 62352 | + "type": "VOICE_MESSAGES_FORBIDDEN", |
| 62353 | + "description": "This user's privacy settings forbid you from sending voice messages." |
| 62354 | + }, |
62340 | 62355 | {
|
62341 | 62356 | "code": 400,
|
62342 | 62357 | "type": "WEBPAGE_CURL_FAILED",
|
|
62898 | 62913 | },
|
62899 | 62914 | "theme_params": {
|
62900 | 62915 | "name": "theme_params",
|
62901 |
| - "description": "A JSON object with the following keys, containing color theme information (integers, RGB24) to pass to the payment provider, to apply in eventual verification pages: bg_color - Background color text_color - Text color hint_color - Hint text color link_color - Link color button_color - Button color button_text_color - Button text color" |
| 62916 | + "description": "Theme parameters »¹", |
| 62917 | + "links": [ |
| 62918 | + "https://core.telegram.org/api/bots/webapps#theme-parameters" |
| 62919 | + ] |
62902 | 62920 | }
|
62903 | 62921 | },
|
62904 | 62922 | "errors": [
|
|
63001 | 63019 | "parameters": {
|
63002 | 63020 | "hash": {
|
63003 | 63021 | "name": "hash",
|
63004 |
| - "description": "Hash used for caching, for more info click here¹.", |
| 63022 | + "description": "Hash used for caching, for more info click here¹.The hash may be generated locally by using the ids of the returned or stored sticker starGift²s.", |
63005 | 63023 | "links": [
|
63006 |
| - "https://core.telegram.org/api/offsets#hash-generation" |
| 63024 | + "https://core.telegram.org/api/offsets#hash-generation", |
| 63025 | + "https://core.telegram.org/constructor/starGift" |
63007 | 63026 | ]
|
63008 | 63027 | }
|
63009 | 63028 | }
|
|
69427 | 69446 | "type": "HIDE_REQUESTER_MISSING",
|
69428 | 69447 | "description": "The join request was missing or was already handled."
|
69429 | 69448 | },
|
| 69449 | + "ID_EXPIRED": { |
| 69450 | + "code": 400, |
| 69451 | + "type": "ID_EXPIRED", |
| 69452 | + "description": "The passed prepared inline message ID has expired." |
| 69453 | + }, |
69430 | 69454 | "ID_INVALID": {
|
69431 | 69455 | "code": 400,
|
69432 | 69456 | "type": "ID_INVALID",
|
|
0 commit comments