An open API service indexing awesome lists of open source software.

https://github.com/sammers21/tg-cleaner

Automatically cleans up things you don't want to appear in a telegram chat
https://github.com/sammers21/tg-cleaner

cleaner demo docker-image ignore java linux tdlib telegram telegram-chat

Last synced: 8 months ago
JSON representation

Automatically cleans up things you don't want to appear in a telegram chat

Awesome Lists containing this project

README

          

# tg-cleaner

The app behaves just like a telegram client on your mobile/desktop
computer allowing you to delete anything other than a text
messages or deleting a specific sticker in an automatic way.
`tg-claner` also supports voice to text recognition via `@voicybot`

Reply to a sticker you want to be ignored with `#tgc_ignore` command:

![demo](https://user-images.githubusercontent.com/16746106/64022539-24a9d980-cb3f-11e9-98cb-c69d67d22214.gif)

`#tgc_allow_text_only` toggles text-only mode in a private chat:

![allow_text_demo](https://user-images.githubusercontent.com/16746106/64022906-dcd78200-cb3f-11e9-9e61-5b282a5337c2.gif)

`#tgc_voice_transcript` - enables seamless integration with `@vociybot`. Each voice message transcribed into text.

# Docker image

To run the docker image, execute:

`$ docker run --restart always --name tg-cleaner -v $(pwd):/tdlib -d -it sammers/tg-cleaner:1.1`

_/my/own/dir_ should be replaced with a path on your computer.

Then you can enter your Telegram account:

`$ docker exec -it tg-cleaner tmux a`

Input your telephone number, received code and a cloud password if needed. Then just quit terminal(NOT USING CNTRL+C).

# Build and run on-host instructions

1. Build tdlib, by following steps from [the instruction](https://tdlib.github.io/td/build.html?language=Java)
2. Make it accessible in you PATH
3. Build the actual CLI programm: `./gradlew fatJar`
4. Run resulted `.jar` file: `java -jar build/libs/tg-cleaner.jar`
5. Input your telephone number and received code.
6. Now listed below features will work.