Merge branch 'master' into chat-relays

This commit is contained in:
spaced4ndy
2026-01-15 13:52:08 +04:00
104 changed files with 7212 additions and 40 deletions
+47
View File
@@ -62,6 +62,11 @@ This file is generated automatically.
- [SentGroupInvitation](#sentgroupinvitation)
- [GroupLinkConnecting](#grouplinkconnecting)
[Network connection events](#network-connection-events)
- [HostConnected](#hostconnected)
- [HostDisconnected](#hostdisconnected)
- [SubscriptionStatus](#subscriptionstatus)
[Error events](#error-events)
- [MessageError](#messageerror)
- [ChatError](#chaterror)
@@ -685,6 +690,48 @@ Sent when bot joins group via another user link.
---
## Network connection events
### HostConnected
Messaging or file server connected
**Record type**:
- type: "hostConnected"
- protocol: string
- transportHost: string
---
### HostDisconnected
Messaging or file server disconnected
**Record type**:
- type: "hostDisconnected"
- protocol: string
- transportHost: string
---
### SubscriptionStatus
Messaging subscription status changed
**Record type**:
- type: "subscriptionStatus"
- server: string
- subscriptionStatus: [SubscriptionStatus](./TYPES.md#subscriptionstatus)
- connections: [string]
---
## Error events
Bots may log these events for debugging. There will be many error events - this does NOT indicate a malfunction - e.g., they may happen because of bad network connectivity, or because messages may be delivered to deleted chats for a short period of time (they will be ignored).
+21
View File
@@ -153,6 +153,7 @@ This file is generated automatically.
- [SndGroupEvent](#sndgroupevent)
- [SrvError](#srverror)
- [StoreError](#storeerror)
- [SubscriptionStatus](#subscriptionstatus)
- [SwitchPhase](#switchphase)
- [TimedMessagesGroupPreference](#timedmessagesgrouppreference)
- [TimedMessagesPreference](#timedmessagespreference)
@@ -3598,6 +3599,26 @@ WorkItemError:
- errContext: string
---
## SubscriptionStatus
**Discriminated union type**:
Active:
- type: "active"
Pending:
- type: "pending"
Removed:
- type: "removed"
- subError: string
NoSub:
- type: "noSub"
---
## SwitchPhase