Skip to content

Commit

Permalink
Fixed problem with Telegram graceCounter, notify deleted messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Nhoya committed Jan 14, 2018
1 parent a61696b commit 4ac4ec1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ OSINT framework in Go

**current version**: 0.4

**develop version**: 0.4
**develop version**: 0.4a

you probably want to take a look at the develop branch for more updates.

Expand Down
2 changes: 1 addition & 1 deletion gOSINT.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/jessevdk/go-flags"
)

const ver = "v0.4"
const ver = "v0.4a"

var opts struct {
Module string `short:"m" long:"module" description:"Specify module" choice:"pgp" choice:"pwnd" choice:"git" choice:"plainSearch" choice:"telegram"`
Expand Down
4 changes: 4 additions & 0 deletions telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ func getTelegramGroupHistory(group string, grace int) {
body := retriveRequestBody("https://t.me/" + group + "/" + messageid + "?embed=1")
message := getTelegramMessage(body)
if message != "" {
for j := 0; j < graceCounter; j++ {
fmt.Println("[MESSAGE REMOVED]")
}
graceCounter = 0
username, nickname := getTelegramUsername(body)
date, time := getTelegramMessageDateTime(body)
if username == "" {
Expand Down

0 comments on commit 4ac4ec1

Please sign in to comment.