MCPcopy Create free account

hub / github.com/tgbot-collection/archiver / functions

Functions37 in github.com/tgbot-collection/archiver

↓ 4 callersFunctiongetUser
(userID int64)
database.go:29
↓ 3 callersFunctionGetMD5Hash
(text string)
screenshot.go:119
↓ 2 callersFunctionaddChat
(userId int64, role, text string)
database.go:71
↓ 2 callersMethodanalysis
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 callersFunctionaskAI
(userID int64)
ai.go:40
↓ 2 callersFunctionbeautify
(url string)
helpers.go:10
↓ 2 callersFunctionextractURL
(text string)
handler.go:188
↓ 2 callersFunctiongetChatsCount
(userID int64)
database.go:65
↓ 2 callersMethodstatus
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 callersMethodsubmit
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 callersFunctiontakeScreenshot
DO NOT involve any telegram bot objects here, such as `b`, `*tb.Message`
screenshot.go:40
↓ 1 callersFunctionaddWatermark
(src string)
screenshot.go:124
↓ 1 callersFunctionarc
(m, replied *tb.Message, provider archiveProvider, url string)
handler.go:148
↓ 1 callersFunctionarchiveRunner
(m, replied *tb.Message, provider archiveProvider)
handler.go:130
↓ 1 callersFunctiondeleteChat
(userID int64)
database.go:80
↓ 1 callersFunctiondisableAI
(userId int64)
database.go:51
↓ 1 callersFunctionenableAI
(userID int64, link string)
database.go:35
↓ 1 callersFunctiongetChats
(userID int64)
database.go:59
↓ 1 callersFunctionscreenshotRunner
(c tb.Context)
handler.go:116
↓ 1 callersFunctionurlHandler
(c tb.Context)
handler.go:104
FunctionTestAnalysis
(t *testing.T)
archiveOrg_test.go:20
FunctionTestBeautify
(t *testing.T)
helpers_test.go:8
FunctionTestGetMD5Hash
(t *testing.T)
screenshot_test.go:10
FunctionTestStatus
(t *testing.T)
archiveOrg_test.go:13
FunctionTestSubmit
(t *testing.T)
archiveOrg_test.go:29
FunctionTestTakeScreenshot
(t *testing.T)
screenshot_test.go:14
FunctionaboutHandler
(c tb.Context)
handler.go:28
Methodanalysis
(html string)
archiveOrg.go:48
FunctionbuttonCallback
(c tb.Context)
handler.go:96
Functionmain
()
main.go:24
FunctionmainEntrance
(c tb.Context)
handler.go:46
FunctionpingHandler
(c tb.Context)
handler.go:35
FunctionstartHandler
(c tb.Context)
handler.go:22
Methodstatus
(uuid string)
archiveOrg.go:64
FunctionstopAIHandler
(c tb.Context)
handler.go:68
Methodsubmit
(userUrl string)
archiveOrg.go:27
FunctiontestEntrance
(c tb.Context)
handler.go:75