-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathwordlist.go
More file actions
28 lines (23 loc) · 731 Bytes
/
wordlist.go
File metadata and controls
28 lines (23 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package main
import (
tl "github.com/goTelegramBot/gogram"
"github.com/goTelegramBot/gogram/types"
)
func wordlist(b tl.Bot,m *types.Message){
args := m.Args()
if len(args) < 2 {
b.SendMessage(m.Chat.Id,"*Specify some keyword to get wordlist from available collection*",&tl.Options{ParseMode:"Markdown"})
return
}
if args[1] == "profanity" {
document := types.InputFile{
FilePath:"wordlists/profanity-en.txt",
}
_,err := b.SendDocument(m.Chat.Id, document,nil)
if err != nil{
b.SendMessage(m.Chat.Id,"*Wordlist not found*",&tl.Options{ParseMode:"Markdown"})
}
}else{
b.SendMessage(m.Chat.Id,"*Wordlist not found*",&tl.Options{ParseMode:"Markdown"})
}
}