Skip to content

Commit

Permalink
Merge pull request #310 from gotd/feat/update-schema
Browse files Browse the repository at this point in the history
feat(schema): update documentation to the latest layer
  • Loading branch information
gotd-bot[bot] authored Jan 4, 2025
2 parents a588d4d + 74b2196 commit 89db16c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions _schema/195.json
Original file line number Diff line number Diff line change
Expand Up @@ -11719,11 +11719,14 @@
},
"new_noncontact_peers_require_premium": {
"name": "new_noncontact_peers_require_premium",
"description": "If set, only users that have a premium account, are in our contact list, or already have a private chat with us can write to us; a 403 PRIVACY_PREMIUM_REQUIRED error will be emitted otherwise. The userFull¹.contact_require_premium flag will be set for users that have this flag enabled. To check whether we can write to a user with this flag enabled, if we haven't yet cached all the required information (for example we don't have the userFull² or history of all users while displaying the chat list in the sharing UI) the users.getIsPremiumRequiredToContact³ method may be invoked, passing the list of users currently visible in the UI, returning a list of booleans that directly specify whether we can or cannot write to each user. Premium⁴ users only, non-Premium users will receive a PREMIUM_ACCOUNT_REQUIRED error when trying to enable this flag.",
"description": "If set, only users that have a premium account, are in our contact list, or already have a private chat with us can write to us; a 403 PRIVACY_PREMIUM_REQUIRED error will be emitted otherwise. The userFull¹.contact_require_premium flag will be set for users that have this flag enabled. To check whether we can write to a user with this flag enabled, if we haven't yet cached all the required information (for example we don't have the userFull² or history of all users while displaying the chat list in the sharing UI) the users.getIsPremiumRequiredToContact³ method may be invoked, passing the list of users currently visible in the UI, returning a list of booleans that directly specify whether we can or cannot write to each user. This option may be enabled by both non-Premium⁴ and Premium⁵ users only if the new_noncontact_peers_require_premium_without_ownpremium client configuration flag »⁶ is equal to true, otherwise it may be enabled only by Premium⁷ users and non-Premium users will receive a PREMIUM_ACCOUNT_REQUIRED error when trying to enable this flag.",
"links": [
"https://core.telegram.org/constructor/userFull",
"https://core.telegram.org/constructor/userFull",
"https://core.telegram.org/method/users.getIsPremiumRequiredToContact",
"https://core.telegram.org/api/premium",
"https://core.telegram.org/api/premium",
"https://core.telegram.org/api/config#new-noncontact-peers-require-premium-without-ownpremium",
"https://core.telegram.org/api/premium"
]
}
Expand Down Expand Up @@ -28790,7 +28793,7 @@
},
"daily_revenue_per_user": {
"name": "daily_revenue_per_user",
"description": "The amount of daily revenue per user in Telegram Stars of the bot that created the affiliate program"
"description": "The amount of daily revenue per user in Telegram Stars of the bot that created the affiliate program. To obtain the approximated revenue per referred user, multiply this value by commission_permille and divide by 1000."
},
"duration_months": {
"name": "duration_months",
Expand Down
7 changes: 5 additions & 2 deletions _schema/latest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11719,11 +11719,14 @@
},
"new_noncontact_peers_require_premium": {
"name": "new_noncontact_peers_require_premium",
"description": "If set, only users that have a premium account, are in our contact list, or already have a private chat with us can write to us; a 403 PRIVACY_PREMIUM_REQUIRED error will be emitted otherwise. The userFull¹.contact_require_premium flag will be set for users that have this flag enabled. To check whether we can write to a user with this flag enabled, if we haven't yet cached all the required information (for example we don't have the userFull² or history of all users while displaying the chat list in the sharing UI) the users.getIsPremiumRequiredToContact³ method may be invoked, passing the list of users currently visible in the UI, returning a list of booleans that directly specify whether we can or cannot write to each user. Premium⁴ users only, non-Premium users will receive a PREMIUM_ACCOUNT_REQUIRED error when trying to enable this flag.",
"description": "If set, only users that have a premium account, are in our contact list, or already have a private chat with us can write to us; a 403 PRIVACY_PREMIUM_REQUIRED error will be emitted otherwise. The userFull¹.contact_require_premium flag will be set for users that have this flag enabled. To check whether we can write to a user with this flag enabled, if we haven't yet cached all the required information (for example we don't have the userFull² or history of all users while displaying the chat list in the sharing UI) the users.getIsPremiumRequiredToContact³ method may be invoked, passing the list of users currently visible in the UI, returning a list of booleans that directly specify whether we can or cannot write to each user. This option may be enabled by both non-Premium⁴ and Premium⁵ users only if the new_noncontact_peers_require_premium_without_ownpremium client configuration flag »⁶ is equal to true, otherwise it may be enabled only by Premium⁷ users and non-Premium users will receive a PREMIUM_ACCOUNT_REQUIRED error when trying to enable this flag.",
"links": [
"https://core.telegram.org/constructor/userFull",
"https://core.telegram.org/constructor/userFull",
"https://core.telegram.org/method/users.getIsPremiumRequiredToContact",
"https://core.telegram.org/api/premium",
"https://core.telegram.org/api/premium",
"https://core.telegram.org/api/config#new-noncontact-peers-require-premium-without-ownpremium",
"https://core.telegram.org/api/premium"
]
}
Expand Down Expand Up @@ -28790,7 +28793,7 @@
},
"daily_revenue_per_user": {
"name": "daily_revenue_per_user",
"description": "The amount of daily revenue per user in Telegram Stars of the bot that created the affiliate program"
"description": "The amount of daily revenue per user in Telegram Stars of the bot that created the affiliate program. To obtain the approximated revenue per referred user, multiply this value by commission_permille and divide by 1000."
},
"duration_months": {
"name": "duration_months",
Expand Down

0 comments on commit 89db16c

Please sign in to comment.