Versions in this module Expand all Collapse all v1 v1.0.0 Aug 19, 2024 Changes in this version + const ClientContinue + const ClientStop + var TaskQueue = make(chan func() bool, 100) + func GetCode(phone string) (string, error) + func GetFullMediaByte(info MediaInfo, sizeType string) ([]byte, error) + func GetMediaByteChunck(info MediaInfo, sizeType string, offsetNum int) ([]byte, error) + func GetStatus() (bool, error) + func IsClientRunning() bool + func LoginWithCode(phone, code, phoneCodeHash string) error + func RemoveSession() + func StartTelegramClient(appID int, appHash string, address string, auth *proxy.Auth, ...) error + type ChatInfo struct + AccessHash int64 + ID int64 + Type string + func GetChatInfoByID(id int64) (*ChatInfo, error) + func GetChatInfoByUsername(username string) (*ChatInfo, error) + type MediaInfo struct + AccessHash int64 + Date int + Duration float64 + FileReference []byte + MediaID int64 + MediaType string + MessageID int + PhotoSizes []PhotoSizeInfo + VideoSize int64 + func GetHistory(chatType string, id, accessHash int64, offset, limit int) ([]MediaInfo, error) + type PhotoSizeInfo struct + Chunks []int + Height int + SizeType string + Width int