diff options
| author | Mistivia <i@mistivia.com> | 2025-11-02 15:27:18 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-11-02 15:27:18 +0800 |
| commit | e9c24f4af7ed56760f6db7941827d09f6db9020b (patch) | |
| tree | 62128c43b883ce5e3148113350978755779bb5de /teleirc/matterbridge/vendor/go.mau.fi/whatsmeow/internals.go | |
| parent | 58d5e7cfda4781d8a57ec52aefd02983835c301a (diff) | |
add matterbridge
Diffstat (limited to 'teleirc/matterbridge/vendor/go.mau.fi/whatsmeow/internals.go')
| -rw-r--r-- | teleirc/matterbridge/vendor/go.mau.fi/whatsmeow/internals.go | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/teleirc/matterbridge/vendor/go.mau.fi/whatsmeow/internals.go b/teleirc/matterbridge/vendor/go.mau.fi/whatsmeow/internals.go new file mode 100644 index 0000000..f71e71e --- /dev/null +++ b/teleirc/matterbridge/vendor/go.mau.fi/whatsmeow/internals.go @@ -0,0 +1,67 @@ +// Copyright (c) 2022 Tulir Asokan +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +package whatsmeow + +import ( + "context" + + waBinary "go.mau.fi/whatsmeow/binary" +) + +type DangerousInternalClient struct { + c *Client +} + +// DangerousInternals allows access to some unexported methods in Client. +// +// Deprecated: dangerous +func (cli *Client) DangerousInternals() *DangerousInternalClient { + return &DangerousInternalClient{cli} +} + +type DangerousInfoQuery = infoQuery +type DangerousInfoQueryType = infoQueryType + +func (int *DangerousInternalClient) SendIQ(query DangerousInfoQuery) (*waBinary.Node, error) { + return int.c.sendIQ(query) +} + +func (int *DangerousInternalClient) SendIQAsync(query DangerousInfoQuery) (<-chan *waBinary.Node, error) { + return int.c.sendIQAsync(query) +} + +func (int *DangerousInternalClient) SendNode(node waBinary.Node) error { + return int.c.sendNode(node) +} + +func (int *DangerousInternalClient) WaitResponse(reqID string) chan *waBinary.Node { + return int.c.waitResponse(reqID) +} + +func (int *DangerousInternalClient) CancelResponse(reqID string, ch chan *waBinary.Node) { + int.c.cancelResponse(reqID, ch) +} + +func (int *DangerousInternalClient) QueryMediaConn() (*MediaConn, error) { + return int.c.queryMediaConn() +} + +func (int *DangerousInternalClient) RefreshMediaConn(force bool) (*MediaConn, error) { + return int.c.refreshMediaConn(force) +} + +func (int *DangerousInternalClient) GetServerPreKeyCount() (int, error) { + return int.c.getServerPreKeyCount() +} + +func (int *DangerousInternalClient) RequestAppStateKeys(ctx context.Context, keyIDs [][]byte) { + int.c.requestAppStateKeys(ctx, keyIDs) +} + +func (int *DangerousInternalClient) SendRetryReceipt(node *waBinary.Node, forceIncludeIdentity bool) { + int.c.sendRetryReceipt(node, forceIncludeIdentity) +} |
