package
0.6.2
Repository: https://github.com/taimast/gotgproto.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DecodeStringToSession decodes the provided base64 encoded session string to session.Data.
No description provided by the author
EncodeSessionToString encodes the provided session to a string in base64 using json bytes.
No description provided by the author
GetChatFromPeer returns the tg.ChatFull data of the provided tg.PeerClass.
GetChatIdFromPeer returns the chat/user id from the provided tg.PeerClass.
No description provided by the author
No description provided by the author
GetInputFileLocation Returns tg.InputFileLocationClass, which can be used to download media used by ext.DownloadMedia().
GetInputPeerClassFromId finds provided user id in the session storage and returns it if found.
GetMediaFileName Return media's filename in format "{name}.{extension}" Warning, stickers will always have name "sticker.webp", if you need distinction, use GetMediaFileNameWithId.
GetMediaFileNameWithId Return media's filename in format "{id}-{name}.{extension}".
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author