mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-02-23 22:45:11 +08:00
42 lines
905 B
Go
42 lines
905 B
Go
package types
|
|
|
|
import (
|
|
"github.com/golang-jwt/jwt/v5"
|
|
"github.com/gotd/td/session"
|
|
)
|
|
|
|
type Part struct {
|
|
DecryptedSize int64
|
|
Size int64
|
|
Salt string
|
|
ID int64
|
|
}
|
|
|
|
type JWTClaims struct {
|
|
jwt.RegisteredClaims
|
|
Name string `json:"name"`
|
|
UserName string `json:"userName"`
|
|
IsPremium bool `json:"isPremium"`
|
|
Hash string `json:"hash"`
|
|
TgSession string `json:"tgSession,omitempty"`
|
|
}
|
|
|
|
type SessionData struct {
|
|
Version int
|
|
Data session.Data
|
|
}
|
|
type SocketMessage struct {
|
|
AuthType string `json:"authType"`
|
|
Message string `json:"message"`
|
|
PhoneNo string `json:"phoneNo,omitempty"`
|
|
PhoneCodeHash string `json:"phoneCodeHash,omitempty"`
|
|
PhoneCode string `json:"phoneCode,omitempty"`
|
|
Password string `json:"password,omitempty"`
|
|
}
|
|
|
|
type BotInfo struct {
|
|
Id int64
|
|
UserName string
|
|
AccessHash int64
|
|
Token string
|
|
}
|