types

package
v0.0.0-...-2ff8efa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppError

type AppError struct {
	Error error
	Code  int
}

type BotInfo

type BotInfo struct {
	Id         int64
	UserName   string
	AccessHash int64
	Token      string
}

type JWTClaims

type JWTClaims struct {
	jwt.RegisteredClaims
	Name      string `json:"name"`
	UserName  string `json:"userName"`
	Bot       bool   `json:"bot"`
	IsPremium bool   `json:"isPremium"`
	Hash      string `json:"hash"`
	TgSession string `json:"tgSession,omitempty"`
}

type Part

type Part struct {
	DecryptedSize int64
	Size          int64
	Salt          string
	ID            int64
}

type SessionData

type SessionData struct {
	Version int
	Data    session.Data
}

type SocketMessage

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL