Directories
¶
| Path | Synopsis |
|---|---|
|
Package bin implements binary serialization and deserialization for TL, providing Buffer that can decode and encode basic Type Language types.
|
Package bin implements binary serialization and deserialization for TL, providing Buffer that can decode and encode basic Type Language types. |
|
Package clock abstracts time source.
|
Package clock abstracts time source. |
|
cmd
|
|
|
dlkey
command
Binary dlkey extracts public keys from remote repo.
|
Binary dlkey extracts public keys from remote repo. |
|
dltl
command
Binary dltl fetches .tl schema from remote repo.
|
Binary dltl fetches .tl schema from remote repo. |
|
gotdchats
command
Binary gotdchats implements chat list request example using testing server.
|
Binary gotdchats implements chat list request example using testing server. |
|
gotdecho
command
Binary gotdecho provides example of Telegram echo bot.
|
Binary gotdecho provides example of Telegram echo bot. |
|
gotdgen
command
Binary gotdgen generates go source code from TL schema.
|
Binary gotdgen generates go source code from TL schema. |
|
mtprint
command
Binary mtprint pretty-prints MTProto message from binary file.
|
Binary mtprint pretty-prints MTProto message from binary file. |
|
rsagen
command
The rsagen command generates rsa.PublicKey variables from PEM-encoded RSA public keys.
|
The rsagen command generates rsa.PublicKey variables from PEM-encoded RSA public keys. |
|
examples
module
|
|
|
bg-run
module
|
|
|
gif-download
module
|
|
|
Package gorules contains ruleguard linter rules.
|
Package gorules contains ruleguard linter rules. |
|
Package internal contains unexported implementation details of Telegram client.
|
Package internal contains unexported implementation details of Telegram client. |
|
ascii
Package ascii provides data and functions to test some properties of ASCII code points.
|
Package ascii provides data and functions to test some properties of ASCII code points. |
|
crypto
Package crypto implements cryptographical primitives for MTproto.
|
Package crypto implements cryptographical primitives for MTproto. |
|
crypto/srp
Package srp contains implementation of Secure Remote Password protocol.
|
Package srp contains implementation of Secure Remote Password protocol. |
|
exchange
Package exchange contains Telegram key exchange algorithm flows.
|
Package exchange contains Telegram key exchange algorithm flows. |
|
gen
Package gen implements code generation from TL schema.
|
Package gen implements code generation from TL schema. |
|
gen/example
Package td contains generated code from example schema and is used for codegen testing.
|
Package td contains generated code from example schema and is used for codegen testing. |
|
keyparser
Package keyparser extracts public keys from code.
|
Package keyparser extracts public keys from code. |
|
mt
Package mt contains generated code based on mtproto schema.
|
Package mt contains generated code based on mtproto schema. |
|
mtproto
Package mtproto implements MTProto connection.
|
Package mtproto implements MTProto connection. |
|
mtproto/salts
Package salts contains MTProto server salt storage.
|
Package salts contains MTProto server salt storage. |
|
mtproxy
Package mtproxy contains MTProxy transport implementations.
|
Package mtproxy contains MTProxy transport implementations. |
|
mtproxy/faketls
Package faketls contains faketls implementation.
|
Package faketls contains faketls implementation. |
|
mtproxy/faketls/tlstypes
Package tlstypes is copy of tlstypes package in mtg.
|
Package tlstypes is copy of tlstypes package in mtg. |
|
mtproxy/obfuscated2
Package obfuscated2 contains obfuscated2 implementation.
|
Package obfuscated2 contains obfuscated2 implementation. |
|
mtproxy/obfuscator
Package obfuscator contains some MTProxy obfuscation utilities.
|
Package obfuscator contains some MTProxy obfuscation utilities. |
|
pool
Package pool contains Telegram connections pool.
|
Package pool contains Telegram connections pool. |
|
proto
Package proto implements MTProto 2.0 primitives.
|
Package proto implements MTProto 2.0 primitives. |
|
proto/codec
Package codec contains MTProto transport encoding implementations.
|
Package codec contains MTProto transport encoding implementations. |
|
rpc
Package rpc implements rpc engine.
|
Package rpc implements rpc engine. |
|
syncio
Package syncio contains synchronized wrappers for interfaces from io package.
|
Package syncio contains synchronized wrappers for interfaces from io package. |
|
tdsync
Package tdsync contains some useful synchronization utilities.
|
Package tdsync contains some useful synchronization utilities. |
|
testutil
Package testutil wraps helpers for testing.
|
Package testutil wraps helpers for testing. |
|
tmap
Package tmap provides type mapping facility that maps type id to type name.
|
Package tmap provides type mapping facility that maps type id to type name. |
|
Package session implements session storage.
|
Package session implements session storage. |
|
Package tdp is td pretty-printing and formatting facilities for types from MTProto.
|
Package tdp is td pretty-printing and formatting facilities for types from MTProto. |
|
internal
Package internal wraps internal packages for tdp package.
|
Package internal wraps internal packages for tdp package. |
|
Package telegram implements Telegram client.
|
Package telegram implements Telegram client. |
|
dcs
Package dcs contains Telegram DCs list and some helpers.
|
Package dcs contains Telegram DCs list and some helpers. |
|
downloader
Package downloader contains downloading files helpers.
|
Package downloader contains downloading files helpers. |
|
internal/e2etest
Package e2etest contains some helpers to make external E2E tests using Telegram staging server.
|
Package e2etest contains some helpers to make external E2E tests using Telegram staging server. |
|
internal/helpers
Package helpers contains some common helping functions.
|
Package helpers contains some common helping functions. |
|
internal/manager
Package manager contains connection management utilities.
|
Package manager contains connection management utilities. |
|
internal/rpcmock
Package rpcmock contains RPC mocking utilities.
|
Package rpcmock contains RPC mocking utilities. |
|
internal/tgtest
Package tgtest provides test Telegram server for end-to-end test.
|
Package tgtest provides test Telegram server for end-to-end test. |
|
internal/tgtest/services/file
Package file contains file service implementation for tgtest server.
|
Package file contains file service implementation for tgtest server. |
|
invokers
Package invokers contains some middlewares and helpers to work with RPC invokers.
|
Package invokers contains some middlewares and helpers to work with RPC invokers. |
|
message
Package message contains some useful utilities for creating Telegram messages.
|
Package message contains some useful utilities for creating Telegram messages. |
|
message/entity
Package entity contains message formatting and styling helpers.
|
Package entity contains message formatting and styling helpers. |
|
message/html
Package html contains HTML styling options.
|
Package html contains HTML styling options. |
|
message/inline
Package inline contains inline query results builder.
|
Package inline contains inline query results builder. |
|
message/internal/deeplink
Package deeplink contains deeplink parsing helpers.
|
Package deeplink contains deeplink parsing helpers. |
|
message/markup
Package markup contain bots inline markup builder.
|
Package markup contain bots inline markup builder. |
|
message/peer
Package peer conatains some peer resolving and extracting helpers.
|
Package peer conatains some peer resolving and extracting helpers. |
|
message/styling
Package styling contains styling options for Telegram messages.
|
Package styling contains styling options for Telegram messages. |
|
message/unpack
Package unpack contains some updates result unpacking helpers.
|
Package unpack contains some updates result unpacking helpers. |
|
query
Package query contains generic pagination helpers.
|
Package query contains generic pagination helpers. |
|
query/cached
Package cached contains cached query helpers.
|
Package cached contains cached query helpers. |
|
query/channels/participants
Package participants contains channel participants iteration helper.
|
Package participants contains channel participants iteration helper. |
|
query/contacts/blocked
Package blocked contains blocked contacts iteration helper.
|
Package blocked contains blocked contacts iteration helper. |
|
query/dialogs
Package dialogs contains dialog iteration helper.
|
Package dialogs contains dialog iteration helper. |
|
query/hasher
Package hasher contains Telegram pagination hash implementation.
|
Package hasher contains Telegram pagination hash implementation. |
|
query/internal/cachedgen
command
|
|
|
query/internal/genutil
Package genutil is a utility package for query helpers codegeneration.
|
Package genutil is a utility package for query helpers codegeneration. |
|
query/internal/itergen
command
|
|
|
query/messages
Package messages contains message iteration helper.
|
Package messages contains message iteration helper. |
|
query/messages/stickers/featured
Package featured contains featured stickers iteration helper.
|
Package featured contains featured stickers iteration helper. |
|
query/photos
Package photos contains photos iteration helper.
|
Package photos contains photos iteration helper. |
|
uploader
Package uploader contains uploading files helpers.
|
Package uploader contains uploading files helpers. |
|
uploader/source
Package source contains remote source interface and implementations for uploader.
|
Package source contains remote source interface and implementations for uploader. |
|
Package tg contains generated types from MTProto Telegram API.
|
Package tg contains generated types from MTProto Telegram API. |
|
e2e
Package e2e implements MTProto encoding and decoding.
|
Package e2e implements MTProto encoding and decoding. |
|
Package tgerr implements helpers for error handling.
|
Package tgerr implements helpers for error handling. |
|
Package transport contains different MTProto transport implementations.
|
Package transport contains different MTProto transport implementations. |
Click to show internal directories.
Click to hide internal directories.