MCPcopy Create free account

hub / github.com/NachoSEO/claudegram / functions

Functions472 in github.com/NachoSEO/claudegram

↓ 69 callersFunctionreplyMd
(ctx: Context, text: string)
src/bot/handlers/command.handler.ts:62
↓ 47 callersFunctiongetSessionKeyFromCtx
(ctx: { chat?: { id: number }; message?: { is_topic_message?: boolean; message_thread_id?: number } | undefine
src/utils/session-key.ts:36
↓ 43 callersMethodget
(key: K)
src/utils/bounded-map.ts:14
↓ 40 callersMethodset
(key: K, value: V)
src/utils/bounded-map.ts:18
↓ 36 callersMethoddelete
(key: K)
src/utils/bounded-map.ts:33
↓ 33 callersMethodgetSession
(sessionKey: string)
src/claude/session-manager.ts:42
↓ 29 callersFunctiondebugLog
Conditional debug logging - only logs when LOG_AGENT_HOOKS is enabled
src/reddit/vreddit.ts:17
↓ 28 callersFunctionlogAt
(level: LogLevel, message: string, data?: unknown)
src/claude/agent.ts:261
↓ 16 callersFunctionsanitizeError
(error: unknown)
src/utils/sanitize.ts:42
↓ 16 callersMethodsendMessage
* Send a message with hybrid approach: * - Short content: MarkdownV2 inline * - Long content or tables: Telegraph page link
src/telegram/message-sender.ts:51
↓ 15 callersFunctionresolveBin
(name: string)
src/utils/resolve-bin.ts:55
↓ 14 callersMethodentries
()
src/utils/bounded-map.ts:49
↓ 14 callersFunctionformatDuration
(ms: number)
src/utils/agent-timer.ts:50
↓ 14 callersFunctionreplyFeatureDisabled
(ctx: Context, feature: string)
src/bot/handlers/command.handler.ts:70
↓ 12 callersFunctionsendToAgent
( sessionKey: string, message: string, options: AgentOptions = {} )
src/claude/agent.ts:295
↓ 12 callersFunctionsetAbortController
(sessionKey: string, controller: AbortController)
src/claude/request-queue.ts:22
↓ 11 callersFunctionfmtTokens
(n: number)
src/bot/handlers/message.handler.ts:49
↓ 10 callersFunctionflushAll
()
src/telegram/telegraph.ts:167
↓ 10 callersFunctionmaybeSendVoiceReply
(ctx: Context, text: string)
src/tts/voice-reply.ts:52
↓ 10 callersFunctionsanitizePath
(str: string)
src/utils/sanitize.ts:11
↓ 9 callersFunctionescapeMarkdownV2
(text: string)
src/telegram/markdown.ts:40
↓ 9 callersFunctiongetWorkspaceRoot
()
src/utils/workspace-guard.ts:5
↓ 9 callersFunctionparseSessionKey
(key: SessionKey)
src/utils/session-key.ts:15
↓ 9 callersMethodupdateStream
* Accumulate streamed text content internally without triggering Telegram edits. * The full content is only displayed when finishStreaming() is cal
src/telegram/message-sender.ts:366
↓ 8 callersMethodcancelStreaming
(ctx: Context)
src/telegram/message-sender.ts:466
↓ 8 callersFunctionclearConversation
(sessionKey: string)
src/claude/agent.ts:782
↓ 8 callersMethodfinishStreaming
(ctx: Context, finalContent: string)
src/telegram/message-sender.ts:376
↓ 8 callersFunctiongetActiveProviderName
(chatId: number)
src/providers/provider-router.ts:56
↓ 8 callersFunctionisPathWithinRoot
(root: string, target: string)
src/utils/workspace-guard.ts:14
↓ 8 callersFunctionisUrlAllowed
(url: string)
src/utils/url-guard.ts:62
↓ 8 callersFunctionparseInline
* Parse inline markdown (bold, italic, code, links, strikethrough) * Returns array of Telegraph nodes
src/telegram/telegraph.ts:327
↓ 8 callersFunctionqueueRequest
( sessionKey: string, message: string, handler: () => Promise<T> )
src/claude/request-queue.ts:55
↓ 8 callersMethodstartStreaming
(ctx: Context)
src/telegram/message-sender.ts:167
↓ 7 callersFunctiongetTTSSettings
(sessionKey: string)
src/tts/tts-settings.ts:108
↓ 7 callersMethodstop
* Stop the watchdog timer.
src/claude/agent-watchdog.ts:107
↓ 7 callersFunctionstr
(key: string)
src/telegram/terminal-renderer.ts:127
↓ 6 callersFunctiongetProvider
(chatId: number)
src/providers/provider-router.ts:41
↓ 6 callersMethodhas
(key: K)
src/utils/bounded-map.ts:37
↓ 6 callersFunctionprojectStatusSuffix
(sessionKey: string)
src/bot/handlers/command.handler.ts:75
↓ 6 callersFunctionreplyMd
(ctx: Context, text: string)
src/reddit/vreddit.ts:41
↓ 6 callersFunctionresumeCommandMessage
(sessionId: string)
src/bot/handlers/command.handler.ts:97
↓ 6 callersMethodsendDocument
* Send a file as a document attachment
src/telegram/message-sender.ts:93
↓ 6 callersFunctionsendProjectBrowser
(ctx: Context, state: ProjectBrowserState, edit: boolean)
src/bot/handlers/command.handler.ts:577
↓ 5 callersFunctioncreateTelegraphPage
( title: string, markdown: string )
src/telegram/telegraph.ts:459
↓ 5 callersFunctionformatTimestamp
(utc: number)
src/reddit/redditfetch.ts:416
↓ 5 callersFunctiongetSpinnerFrame
(index: number)
src/telegram/terminal-renderer.ts:59
↓ 5 callersFunctionisProcessing
(sessionKey: string)
src/claude/request-queue.ts:46
↓ 5 callersMethodsetWorkingDirectory
(sessionKey: string, directory: string)
src/claude/session-manager.ts:75
↓ 5 callersFunctiontranscribeFile
(filePath: string, options?: TranscribeOptions)
src/audio/transcribe.ts:20
↓ 4 callersFunctionatomicWriteFileSync
( filePath: string, data: string, options?: { mode?: number }, )
src/utils/atomic-write.ts:8
↓ 4 callersFunctionclearAbortController
(sessionKey: string)
src/claude/request-queue.ts:26
↓ 4 callersFunctionclearActiveQuery
(sessionKey: string)
src/claude/request-queue.ts:34
↓ 4 callersFunctiondetectPlatform
(url: string)
src/media/extract.ts:65
↓ 4 callersFunctiondownloadFileSecure
(fileUrl: string, destPath: string)
src/utils/download.ts:25
↓ 4 callersFunctionflushList
()
src/telegram/telegraph.ts:159
↓ 4 callersFunctiongetElapsedMs
(timer: AgentTimer)
src/utils/agent-timer.ts:35
↓ 4 callersFunctiongetModel
(chatId: number)
src/claude/agent.ts:793
↓ 4 callersFunctiongetStreamingMode
()
src/bot/handlers/command.handler.ts:870
↓ 4 callersFunctiongetTelegramFileUrl
(botToken: string, filePath: string)
src/utils/download.ts:64
↓ 4 callersFunctionisDuplicate
(messageId: number)
src/telegram/deduplication.ts:6
↓ 4 callersFunctionisStaleMessage
(messageDate: number)
src/bot/middleware/stale-filter.ts:4
↓ 4 callersFunctionlogAuthAttempt
* Log authentication attempt for security auditing. * Avoids logging message content to protect privacy.
src/bot/middleware/auth.middleware.ts:8
↓ 4 callersFunctionmarkProcessed
(messageId: number)
src/telegram/deduplication.ts:10
↓ 4 callersFunctionpriority
(f: string)
src/bot/handlers/command.handler.ts:776
↓ 4 callersFunctionreplyFeatureDisabled
(ctx: Context, feature: string)
src/bot/handlers/message.handler.ts:28
↓ 4 callersFunctionrunCommand
( cmd: string, args: string[], timeoutMs: number )
src/media/extract.ts:141
↓ 4 callersFunctionrunYtDlp
* Run a yt-dlp command with automatic proxy fallback. * First tries without proxy. If it fails with an IP/auth error and proxies * are available, re
src/media/extract.ts:165
↓ 4 callersMethodsave
()
src/providers/user-preferences.ts:54
↓ 4 callersMethodsave
()
src/claude/session-history.ts:72
↓ 4 callersFunctionsaveSettings
()
src/tts/tts-settings.ts:92
↓ 3 callersMethodclearModel
(chatId: number)
src/providers/types.ts:60
↓ 3 callersFunctionclearQueue
(sessionKey: string)
src/claude/request-queue.ts:168
↓ 3 callersFunctioncreateTelegraphFromFile
(filePath: string)
src/telegram/telegraph.ts:491
↓ 3 callersFunctionescapeRegExp
* Escape special regex characters in a string.
src/utils/sanitize.ts:55
↓ 3 callersFunctionexecuteVReddit
(ctx: Context, input: string)
src/reddit/vreddit.ts:587
↓ 3 callersFunctionflushParagraph
()
src/telegram/telegraph.ts:148
↓ 3 callersMethodforEach
(callbackfn: (value: V, key: K, map: Map<K, V>) => void)
src/utils/bounded-map.ts:61
↓ 3 callersFunctionformatResults
(results: RawResult[], format: 'markdown' | 'json')
src/reddit/redditfetch.ts:625
↓ 3 callersFunctionformatTimeAgo
(date: Date)
src/bot/handlers/command.handler.ts:1781
↓ 3 callersFunctiongetClient
()
src/providers/opencode-provider.ts:140
↓ 3 callersFunctiongetLogLevel
()
src/claude/agent.ts:257
↓ 3 callersMethodgetModel
(chatId: number)
src/providers/types.ts:59
↓ 3 callersFunctiongetOpenCodeProvider
()
src/providers/provider-router.ts:25
↓ 3 callersFunctiongetQueuePosition
(sessionKey: string)
src/claude/request-queue.ts:50
↓ 3 callersFunctiongetTelegraphSettings
(sessionKey: string)
src/telegram/telegraph-settings.ts:107
↓ 3 callersFunctiongetTerminalUISettings
(sessionKey: string)
src/telegram/terminal-settings.ts:81
↓ 3 callersFunctionhandleAgentReply
( ctx: Context, sessionKey: string, input: string, mode: 'plan' | 'explore' | 'loop' )
src/bot/handlers/message.handler.ts:411
↓ 3 callersFunctionisDangerousMode
()
src/claude/agent.ts:810
↓ 3 callersFunctionisValidExecutable
* Check if a resolved path is a valid executable file. * Follows symlinks (required for Homebrew, snap, etc.).
src/utils/resolve-bin.ts:13
↓ 3 callersMethodkeys
()
src/utils/bounded-map.ts:53
↓ 3 callersMethodsaveSession
( sessionKey: string, conversationId: string, projectPath: string, lastMessagePreview: string
src/claude/session-history.ts:80
↓ 3 callersFunctionsendCompactionNotification
( ctx: Context, compaction: { trigger: 'manual' | 'auto'; preTokens: number } | undefined, )
src/bot/handlers/message.handler.ts:77
↓ 3 callersMethodsendCompletionNotification
* Send a brief new message to trigger a push notification after a long task. * Telegram only notifies on new messages, not edits — so streaming mod
src/telegram/message-sender.ts:499
↓ 3 callersFunctionsendSessionInitNotification
( ctx: Context, sessionKey: string, sessionInit: { model: string; sessionId: string } | undefined, )
src/bot/handlers/message.handler.ts:108
↓ 3 callersFunctionsendUsageFooter
( ctx: Context, usage: AgentUsage | undefined, )
src/bot/handlers/message.handler.ts:63
↓ 3 callersMethodsetModel
(chatId: number, model: string)
src/providers/types.ts:58
↓ 3 callersFunctionsetTTSEnabled
(sessionKey: string, enabled: boolean)
src/tts/tts-settings.ts:118
↓ 3 callersFunctionsetTelegraphEnabled
(sessionKey: string, enabled: boolean)
src/telegram/telegraph-settings.ts:119
↓ 3 callersFunctionshowExtractMenu
(ctx: Context, url: string)
src/bot/handlers/command.handler.ts:2815
↓ 3 callersFunctiontranscribeAndSend
* Download a Telegram file by file_id → transcribe → send result. * Shared helper for reply-to and ForceReply paths.
src/bot/handlers/command.handler.ts:2594
next →1–100 of 472, ranked by callers