-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4479575
Showing
35 changed files
with
4,036 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Go | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
|
||
- name: Build | ||
run: go build -v ./... | ||
|
||
- name: Test | ||
run: go test -v ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Release Go Binaries | ||
|
||
on: | ||
release: | ||
types: [created] | ||
workflow_dispatch: | ||
|
||
env: | ||
CMD_PATH: ./ | ||
|
||
|
||
jobs: | ||
releases-matrix: | ||
name: Release Matrix | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
goos: [linux, windows, darwin] | ||
goarch: ["386", amd64] | ||
exclude: | ||
- goarch: "386" | ||
goos: darwin | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set APP_VERSION env | ||
run: echo APP_VERSION=$(echo ${GITHUB_REF} | rev | cut -d'/' -f 1 | rev ) >> ${GITHUB_ENV} | ||
- name: Set BUILD_TIME env | ||
run: echo BUILD_TIME=$(date) >> ${GITHUB_ENV} | ||
- name: Environment Printer | ||
uses: managedkaos/[email protected] | ||
|
||
- uses: wangyoucao577/[email protected] | ||
with: | ||
github_token: ${{ secrets.ACTIONS_TOKEN }} | ||
goos: ${{ matrix.goos }} | ||
goarch: ${{ matrix.goarch }} | ||
goversion: "1.18" | ||
project_path: "${{ env.CMD_PATH }}" | ||
build_flags: -v | ||
ldflags: -X "main.version=${{ env.APP_VERSION }}" -X "main.builtOn=${{ env.BUILD_TIME }}" -X main.gitCommit=${{ github.sha }} -X main.gitRef=${{ github.ref }} | ||
extra_files: LICENCE README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
|
||
# Dependency directories (remove the comment below to include it) | ||
# vendor/ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
SHELL=/bin/sh | ||
|
||
OUTPUT=tgmsgdel | ||
|
||
.PHONY: clean cleanall cleanfiles debug run | ||
|
||
|
||
export CGO_LDFLAGS="-L/usr/local/opt/openssl/lib" | ||
|
||
$(OUTPUT): main.go | ||
go build -o $@ | ||
|
||
debug: | ||
dlv debug . | ||
|
||
run: | ||
go run . | ||
|
||
clean: | ||
-rm $(OUTPUT) | ||
|
||
test: | ||
go test ./... -race -cover | ||
|
||
fuzz: | ||
go test -fuzz=Fuzz -fuzztime 30s ./internal/secure | ||
go test -fuzz=Fuzz -fuzztime 30s ./internal/mtp | ||
|
||
cleanfiles: | ||
-rm -rf tdlib-db tdlib-files | ||
|
||
cleanall: clean cleanfiles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Wipe My Chat | ||
Delete all your messages in public and private chats. | ||
|
||
--- | ||
> _In loving memory of V. Gorban, 1967-2022._ | ||
--- | ||
|
||
## Usage | ||
|
||
1. Download the release from the [Releases page][1]; | ||
2. Unpack; | ||
3. Run. | ||
|
||
You will need: | ||
- Telegram API ID | ||
- Telegram API HASH | ||
|
||
Don't worry, the program provides easy to follow instructions on how to get | ||
those. | ||
|
||
To authenticate, you will use your Telegram Account phone number and the code, | ||
that will be sent to you in-app or text message (SMS). | ||
|
||
|
||
## Licence | ||
GNU Public Licence 3.0, see [LICENCE][2] | ||
|
||
[1]: https://github.com/rusq/wipemychat/releases | ||
[2]: LICENCE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
module github.com/rusq/wipemychat | ||
|
||
go 1.18 | ||
|
||
require ( | ||
github.com/bluele/gcache v0.0.2 | ||
github.com/fatih/color v1.13.0 | ||
github.com/gdamore/tcell/v2 v2.4.1-0.20210905002822-f057f0a857a1 | ||
github.com/gotd/contrib v0.12.0 | ||
github.com/gotd/td v0.57.0 | ||
github.com/joho/godotenv v1.4.0 | ||
github.com/looplab/fsm v0.3.0 | ||
github.com/mattn/go-colorable v0.1.12 | ||
github.com/rivo/tview v0.0.0-20220307222120-9994674d60a8 | ||
github.com/rusq/dlog v1.3.3 | ||
github.com/rusq/osenv/v2 v2.0.1 | ||
github.com/rusq/tracer v1.0.0 | ||
github.com/schollz/progressbar/v3 v3.8.6 | ||
github.com/stretchr/testify v1.7.1 | ||
go.uber.org/zap v1.21.0 | ||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 | ||
) | ||
|
||
require ( | ||
github.com/cenkalti/backoff/v4 v4.1.3 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/gdamore/encoding v1.0.0 // indirect | ||
github.com/go-faster/errors v0.5.0 // indirect | ||
github.com/go-faster/jx v0.33.0 // indirect | ||
github.com/go-faster/xor v0.3.0 // indirect | ||
github.com/gotd/ige v0.2.2 // indirect | ||
github.com/gotd/neo v0.1.5 // indirect | ||
github.com/klauspost/compress v1.15.1 // indirect | ||
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect | ||
github.com/mattn/go-isatty v0.0.14 // indirect | ||
github.com/mattn/go-runewidth v0.0.13 // indirect | ||
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/rivo/uniseg v0.2.0 // indirect | ||
github.com/segmentio/asm v1.1.3 // indirect | ||
go.uber.org/atomic v1.9.0 // indirect | ||
go.uber.org/multierr v1.8.0 // indirect | ||
golang.org/x/crypto v0.0.0-20220131195533-30dcbda58838 // indirect | ||
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect | ||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect | ||
golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5 // indirect | ||
golang.org/x/text v0.3.7 // indirect | ||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect | ||
nhooyr.io/websocket v1.8.7 // indirect | ||
rsc.io/qr v0.2.0 // indirect | ||
) |
Oops, something went wrong.