https://github.com/lattenwald/tgas
Obtain api details (api_id and api_hash) at https://my.telegram.org.
Create config.toml file with folliowing content:
[tgas]
# optional, remove/comment this if not needed
# if present, all spam messages will be forwarded here along with sender info
# spam_chat = -10014630656431
[tdlib]
# obtain your api_id and api_hash at https://my.telegram.org/auth
api_id = "xxxxx"
api_hash = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
This image has following mount points:
/app/db — tdlib database, including but not limited to authorization data/app/config.toml — your configuration/app/erl_crash.dump — crash dump if needed (optional)/app/log — some logs (optional)docker run \
-v `pwd`/config.toml:/app/config.toml \
-v `pwd`/db:/app/db \
-i -t lattenwald/tgas \
start_iex
You need to authorize
iex> :tdlib.phone_number :tgas, "+12345678"
iex> :tdlib.auth_code :tgas, "23456"
iex> :tdlib.auth_password :tgas, "yourPassword"
You can also list your chats here, to find chat id for forwarding spam messages
iex> Tgas.Session.getChats
... or find some specific chat by title, using regular expression
iex> Tgas.Session.findChat ~r/secret group/i
docker run \
-v `pwd`/config.toml:/app/config.toml \
-v `pwd`/db:/app/db \
-i -t lattenwald/tgas
Content type
Image
Digest
sha256:95a60cee8…
Size
131.1 MB
Last updated
almost 4 years ago
docker pull lattenwald/tgas