Files
tgex-backend/tg_parser/internal/adapter/telegram/telegram.go
T
root a33fa24e99
Build & Push / build (push) Canceled after 0s
Initial commit
2026-08-05 19:31:35 +03:00

21 lines
302 B
Go

package telegram
import (
"github.com/TelegramExchange/pkg/telegram"
"github.com/gotd/td/tg"
)
type Telegram struct {
client *telegram.Client
}
func New(client *telegram.Client) *Telegram {
return &Telegram{
client: client,
}
}
func (t *Telegram) API() *tg.Client {
return t.client.API()
}