Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tgbot-collection/archiver
/ functions
Functions
37 in github.com/tgbot-collection/archiver
⨍
Functions
37
◇
Types & classes
11
↓ 4 callers
Function
getUser
(userID int64)
database.go:29
↓ 3 callers
Function
GetMD5Hash
(text string)
screenshot.go:119
↓ 2 callers
Function
addChat
(userId int64, role, text string)
database.go:71
↓ 2 callers
Method
analysis
analysis is response for get the unique archive result url. If your provider doesn't require this, just write an empty responsible that will return ht
provider.go:19
↓ 2 callers
Function
askAI
(userID int64)
ai.go:40
↓ 2 callers
Function
beautify
(url string)
helpers.go:10
↓ 2 callers
Function
extractURL
(text string)
handler.go:188
↓ 2 callers
Function
getChatsCount
(userID int64)
database.go:65
↓ 2 callers
Method
status
status is responsible for refresh the newest archive status because archive will take some time. param: - unique: the unique stuff to represent the
provider.go:27
↓ 2 callers
Method
submit
submit is responsible for send request to provider(archive.org). param: - url: user input url return: - html: text that represent archive page -
provider.go:10
↓ 2 callers
Function
takeScreenshot
DO NOT involve any telegram bot objects here, such as `b`, `*tb.Message`
screenshot.go:40
↓ 1 callers
Function
addWatermark
(src string)
screenshot.go:124
↓ 1 callers
Function
arc
(m, replied *tb.Message, provider archiveProvider, url string)
handler.go:148
↓ 1 callers
Function
archiveRunner
(m, replied *tb.Message, provider archiveProvider)
handler.go:130
↓ 1 callers
Function
deleteChat
(userID int64)
database.go:80
↓ 1 callers
Function
disableAI
(userId int64)
database.go:51
↓ 1 callers
Function
enableAI
(userID int64, link string)
database.go:35
↓ 1 callers
Function
getChats
(userID int64)
database.go:59
↓ 1 callers
Function
screenshotRunner
(c tb.Context)
handler.go:116
↓ 1 callers
Function
urlHandler
(c tb.Context)
handler.go:104
Function
TestAnalysis
(t *testing.T)
archiveOrg_test.go:20
Function
TestBeautify
(t *testing.T)
helpers_test.go:8
Function
TestGetMD5Hash
(t *testing.T)
screenshot_test.go:10
Function
TestStatus
(t *testing.T)
archiveOrg_test.go:13
Function
TestSubmit
(t *testing.T)
archiveOrg_test.go:29
Function
TestTakeScreenshot
(t *testing.T)
screenshot_test.go:14
Function
aboutHandler
(c tb.Context)
handler.go:28
Method
analysis
(html string)
archiveOrg.go:48
Function
buttonCallback
(c tb.Context)
handler.go:96
Function
main
()
main.go:24
Function
mainEntrance
(c tb.Context)
handler.go:46
Function
pingHandler
(c tb.Context)
handler.go:35
Function
startHandler
(c tb.Context)
handler.go:22
Method
status
(uuid string)
archiveOrg.go:64
Function
stopAIHandler
(c tb.Context)
handler.go:68
Method
submit
(userUrl string)
archiveOrg.go:27
Function
testEntrance
(c tb.Context)
handler.go:75