fix bot API, schema

This commit is contained in:
Evgeny Poberezkin
2026-06-05 22:59:03 +01:00
parent 146aa54ab2
commit afbac2a88c
8 changed files with 102 additions and 5 deletions
@@ -138,6 +138,10 @@ AgentErrorType_Tag = Literal["CMD", "CONN", "NO_USER", "SMP", "NTF", "XFTP", "FI
class AutoAccept(TypedDict):
acceptIncognito: bool
BadgeStatus = Literal["active", "expired", "failed"]
BadgeType = Literal["supporter", "business", "legend", "cFInvestor"]
class BlockingInfo(TypedDict):
reason: "BlockingReason"
notice: NotRequired["ClientNotice"]
@@ -2059,6 +2063,10 @@ class LinkPreview(TypedDict):
image: str
content: NotRequired["LinkContent"]
class LocalBadge(TypedDict):
badgeStatus: "BadgeStatus"
badge: "SupporterBadge"
class LocalProfile(TypedDict):
profileId: int # int64
displayName: str
@@ -2068,6 +2076,7 @@ class LocalProfile(TypedDict):
contactLink: NotRequired[str]
preferences: NotRequired["Preferences"]
peerType: NotRequired["ChatPeerType"]
localBadge: NotRequired["LocalBadge"]
localAlias: str
MemberCriteria = Literal["all"]
@@ -2318,6 +2327,7 @@ class Profile(TypedDict):
contactLink: NotRequired[str]
preferences: NotRequired["Preferences"]
peerType: NotRequired["ChatPeerType"]
badge: NotRequired["SupporterBadge"]
class ProxyClientError_protocolError(TypedDict):
type: Literal["protocolError"]
@@ -3313,6 +3323,12 @@ SubscriptionStatus_Tag = Literal["active", "pending", "removed", "noSub"]
class SupportGroupPreference(TypedDict):
enable: "GroupFeatureEnabled"
class SupporterBadge(TypedDict):
proof: str
presHeader: str
badgeExpiry: NotRequired[str] # ISO-8601 timestamp
badgeType: "BadgeType"
SwitchPhase = Literal["started", "confirmed", "secured", "completed"]
class TimedMessagesGroupPreference(TypedDict):