Versions in this module Expand all Collapse all v0 v0.5.0 Jul 16, 2026 Changes in this version type Session + func (s *Session) FillDefaults() v0.4.0 Jul 16, 2026 v0.3.0 Jul 13, 2026 v0.2.0 Jul 12, 2026 v0.1.0 Jul 1, 2026 Changes in this version + var AllFormats = []Format + func Convert(str string, to Format) (string, error) + func ConvertFrom(str string, from, to Format) (string, error) + func Decode(str string) (*Session, Format, error) + func Encode(s *Session, format Format) (string, error) + func EncodeGogram(s *Session) (string, error) + func EncodeGotgproto(s *Session) (string, error) + func EncodeGramJS(s *Session) (string, error) + func EncodeMTKruto(s *Session) (string, error) + func EncodeMtcute(s *Session) (string, error) + func EncodePyrogram(s *Session) (string, error) + func EncodeTelethon(s *Session) (string, error) + func ReadSQLite(path string) (*Session, SQLiteFormat, error) + type Format string + const FormatGogram + const FormatGotgproto + const FormatGramJS + const FormatMTKruto + const FormatMtcute + const FormatPyrogram + const FormatTelethon + func DetectFormat(str string) Format + type SQLiteFormat string + const SQLitePyrogram + const SQLiteTelethon + type Session struct + AppID int32 + AuthKey []byte + DCID int + IsBot bool + Port int + ServerAddress string + TestMode bool + UserID int64 + func DecodeFormat(str string, format Format) (*Session, error) + func DecodeGogram(str string) (*Session, error) + func DecodeGotgproto(str string) (*Session, error) + func DecodeGramJS(str string) (*Session, error) + func DecodeMTKruto(str string) (*Session, error) + func DecodeMtcute(str string) (*Session, error) + func DecodePyrogram(str string) (*Session, error) + func DecodeTelethon(str string) (*Session, error) + func ReadPyrogramSQLite(path string) (*Session, error) + func ReadTelethonSQLite(path string) (*Session, error)