Files
mautrix-telegram/pkg/gotd/rpc/external.go
T
2025-06-27 20:03:37 -07:00

24 lines
529 B
Go

package rpc
import (
"context"
"go.mau.fi/mautrix-telegram/pkg/gotd/bin"
)
// Send is a function that sends requests to the server.
type Send func(ctx context.Context, msgID int64, seqNo int32, in bin.Encoder) error
// NopSend does nothing.
func NopSend(context.Context, int64, int32, bin.Encoder) error { return nil }
var _ Send = NopSend
// DropHandler handles drop rpc requests.
type DropHandler func(req Request) error
// NopDrop does nothing.
func NopDrop(Request) error { return nil }
var _ DropHandler = NopDrop