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

31 lines
466 B
Go

package auth
import (
"io"
"go.mau.fi/mautrix-telegram/pkg/gotd/tg"
)
// Client implements Telegram authentication.
type Client struct {
api *tg.Client
rand io.Reader
appID int
appHash string
}
// NewClient initializes and returns Telegram authentication client.
func NewClient(
api *tg.Client,
rand io.Reader,
appID int,
appHash string,
) *Client {
return &Client{
api: api,
rand: rand,
appID: appID,
appHash: appHash,
}
}