MCPcopy Create free account

hub / github.com/copydobro/tg2ai / functions

Functions28 in github.com/copydobro/tg2ai

↓ 8 callersFunctionsanitizeText
(text: string)
packages/core/src/scraper.ts:41
↓ 7 callersFunctionisValidUsername
(username: string)
packages/core/src/scraper.ts:55
↓ 7 callersFunctionparseMultipleChannels
(input: string, limit = 20)
packages/core/src/scraper.ts:173
↓ 4 callersFunctionformatExport
( result: ScrapeResult, format: FormatType, maxTokens = MAX_TOKENS_PER_FILE, )
packages/core/src/formatters.ts:244
↓ 3 callersFunctioncreateArchive
(files: ExportFile[])
packages/core/src/formatters.ts:304
↓ 3 callersFunctionestimateTokens
(text: string)
packages/core/src/formatters.ts:16
↓ 3 callersFunctiongetLocale
(languageCode?: string)
apps/web-bot/src/lib/bot.ts:112
↓ 3 callersFunctionscrapeChannel
( channelName: string, maxPosts = 1000, )
packages/core/src/scraper.ts:230
↓ 2 callersFunctionextractPosts
(html: string)
packages/core/src/scraper.ts:94
↓ 2 callersFunctionhtmlToMarkdown
Convert minimal HTML to Markdown (bold, italic, links, code)
packages/core/src/formatters.ts:21
↓ 2 callersFunctiontoMarkdown
( channel: ChannelMeta, posts: TelegramPost[], chunkInfo?: { index: number; total: number }, )
packages/core/src/formatters.ts:86
↓ 2 callersFunctiontoTOON
( channel: ChannelMeta, posts: TelegramPost[], chunkInfo?: { index: number; total: number }, )
packages/core/src/formatters.ts:215
↓ 1 callersFunctionchunkPostsByTokens
( posts: TelegramPost[], maxTokens: number, )
packages/core/src/formatters.ts:56
↓ 1 callersFunctiondetectMedia
($el: cheerio.Cheerio<any>)
packages/core/src/scraper.ts:71
↓ 1 callersFunctionescapeCSV
(value: string)
packages/core/src/formatters.ts:192
↓ 1 callersFunctionextractMeta
(html: string, channelName: string)
packages/core/src/scraper.ts:140
↓ 1 callersFunctionformatDate
(iso: string)
packages/core/src/formatters.ts:35
↓ 1 callersFunctiongroupByDate
(posts: TelegramPost[])
packages/core/src/formatters.ts:44
↓ 1 callersFunctionmain
()
packages/tg2ai-mcp/src/index.ts:116
↓ 1 callersFunctionparseViews
(raw: string | undefined)
packages/core/src/scraper.ts:66
↓ 1 callersFunctiontoCSV
( channel: ChannelMeta, posts: TelegramPost[], chunkInfo?: { index: number; total: number }, )
packages/core/src/formatters.ts:176
↓ 1 callersFunctiontoJSON
( channel: ChannelMeta, posts: TelegramPost[], chunkInfo?: { index: number; total: number }, )
packages/core/src/formatters.ts:142
FunctionGET
()
apps/web-bot/src/app/api/set-webhook/route.ts:3
FunctionHome
()
apps/web-bot/src/app/page.tsx:5
FunctionPOST
(req: Request)
apps/web-bot/src/app/api/webhook/route.ts:6
FunctionRootLayout
({ children, }: { children: React.ReactNode; })
apps/web-bot/src/app/layout.tsx:10
FunctionparseChannelInput
(input: string)
packages/core/src/scraper.ts:194
FunctionverifyChannelExists
(channelName: string)
packages/core/src/scraper.ts:202