openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 7.75 kB
JavaScript
import{T as parseStrictInteger}from"../../number-coercion-B3CfI447.mjs";import{a as mergeTelegramAccountConfig,n as listTelegramAccountIds,o as resolveTelegramAccountConfig}from"../../account-selection-CSIzQZif.mjs";import{i as resolveTelegramAccount,n as listEnabledTelegramAccounts,o as resolveTelegramMediaRuntimeOptions,r as resolveDefaultTelegramAccountId,s as resolveTelegramPollActionGateState,t as createTelegramActionGate}from"../../accounts-CHjEWHkL.mjs";import{n as isNumericTelegramUserId,r as normalizeTelegramAllowFromEntry,t as isNumericTelegramSenderUserId}from"../../allow-from-Cl7XrCrw.mjs";import{c as normalizeTelegramChatId,d as parseTelegramTarget,f as resolveTelegramTargetChatType,l as normalizeTelegramLookupTarget,n as parseTelegramTopicConversation,p as stripTelegramInternalPrefixes,s as isNumericTelegramChatId}from"../../topic-conversation-C3o7-j7e.mjs";import{l as looksLikeTelegramTargetId,u as normalizeTelegramMessagingTarget}from"../../prompt-context-projection-DgqmoU4P.mjs";import{A as hasBotMention,C as parseTelegramReplyToMessageId,D as buildSenderName,E as buildSenderLabel,M as isBinaryContent,O as extractTelegramLocation,P as normalizeForwardedContext,S as withResolvedTelegramForumFlag,T as resolveTelegramPreviewStreamMode,_ as resolveTelegramGroupAllowFromContext,b as resolveTelegramThreadSpec,c as buildTelegramThreadParams,d as extractTelegramForumFlag,g as resolveTelegramForumThreadId,h as resolveTelegramForumFlag,i as buildTelegramGroupPeerId,k as getTelegramTextParts,l as buildTypingThreadParams,n as buildGroupLabel,o as buildTelegramParentPeer,r as buildTelegramGroupFrom,s as buildTelegramRoutingTarget,u as describeReplyTarget,w as parseTelegramThreadId}from"../../helpers-B2EnHAZw.mjs";import{r as inspectTelegramAccount}from"../../account-inspect-QgH_f1ZJ.mjs";import{i as shouldSuppressTelegramExecApprovalForwardingFallback,r as buildTelegramExecApprovalPendingPayload,t as probeTelegram}from"../../probe-Db2SQm-B.mjs";import{a as fetchTelegramChatId,c as resolveTelegramAutoThreadId,i as resolveTelegramGroupToolPolicy,n as collectTelegramStatusIssues,o as lookupTelegramChatId,r as resolveTelegramGroupRequireMention,s as resolveTelegramChatLookupFetch,t as telegramPlugin}from"../../channel-CNiNQ36R.mjs";import{i as resolveTelegramInlineButtonsScopeFromCapabilities,n as resolveTelegramInlineButtonsConfigScope,r as resolveTelegramInlineButtonsScope,t as isTelegramInlineButtonsEnabled}from"../../inline-buttons-0_uYHF7L.mjs";import{t as resolveTelegramReactionLevel}from"../../reaction-level-BRX8GYWw.mjs";import{E as escapeTelegramHtml,S as markdownToTelegramHtmlChunks,b as markdownToTelegramChunks,t as TELEGRAM_TEXT_CHUNK_LIMIT,w as splitTelegramHtmlChunks,x as markdownToTelegramHtml}from"../../text-chunk-limit-YsOTt7TW.mjs";import{a as isTelegramExecApprovalHandlerConfigured,c as resolveTelegramExecApprovalTarget,d as shouldSuppressLocalTelegramExecApprovalPrompt,i as isTelegramExecApprovalClientEnabled,l as shouldHandleTelegramExecApprovalRequest,n as isTelegramExecApprovalApprover,o as isTelegramExecApprovalTargetRecipient,r as isTelegramExecApprovalAuthorizedSender,s as resolveTelegramExecApprovalConfig,t as getTelegramExecApprovalApprovers,u as shouldInjectTelegramExecApprovalButtons}from"../../exec-approvals-BdJZ-BtB.mjs";import{c as buildModelSelectionCallbackData,d as calculateTotalPages,f as getModelsPageSize,h as resolveModelSelection,l as buildModelsKeyboard,o as buildTelegramModelsProviderChannelData,p as parseModelCallbackData,s as buildBrowseProvidersButton,t as buildCommandsPaginationKeyboard,u as buildProviderKeyboard}from"../../command-ui-CThbGvr-.mjs";import{t as telegramSetupPlugin}from"../../channel.setup-BeH0sJlm.mjs";import{i as telegramOutbound,m as resolveTelegramDirectPeerId,r as sendTelegramPayloadMessages}from"../../outbound-adapter-SWXqhFMV.mjs";import{n as listTelegramDirectoryPeersFromConfig,t as listTelegramDirectoryGroupsFromConfig}from"../../directory-config-D_mPtRGP.mjs";import{i as writeTelegramUpdateOffset,r as readTelegramUpdateOffset,t as deleteTelegramUpdateOffset}from"../../update-offset-store-BIJYQgn_.mjs";import{t as collectTelegramSecurityAuditFindings}from"../../security-audit-CgpjsKVp.mjs";import{i as resolveTelegramCustomCommands,n as normalizeTelegramCommandDescription,r as normalizeTelegramCommandName,t as TELEGRAM_COMMAND_NAME_PATTERN}from"../../command-config-BM9bvVXP.mjs";import{a as getCachedSticker,i as getCacheStats,n as cacheSticker,o as searchStickers,r as getAllCachedStickers,t as describeStickerImage}from"../../sticker-cache-1jifmSzV.mjs";export{TELEGRAM_COMMAND_NAME_PATTERN,TELEGRAM_TEXT_CHUNK_LIMIT,buildBrowseProvidersButton,buildCommandsPaginationKeyboard,buildGroupLabel,buildModelSelectionCallbackData,buildModelsKeyboard,buildProviderKeyboard,buildSenderLabel,buildSenderName,buildTelegramExecApprovalPendingPayload,buildTelegramGroupFrom,buildTelegramGroupPeerId,buildTelegramModelsProviderChannelData,buildTelegramParentPeer,buildTelegramRoutingTarget,buildTelegramThreadParams,buildTypingThreadParams,cacheSticker,calculateTotalPages,collectTelegramSecurityAuditFindings,collectTelegramStatusIssues,createTelegramActionGate,deleteTelegramUpdateOffset,describeReplyTarget,describeStickerImage,escapeTelegramHtml,extractTelegramForumFlag,extractTelegramLocation,fetchTelegramChatId,getAllCachedStickers,getCacheStats,getCachedSticker,getModelsPageSize,getTelegramExecApprovalApprovers,getTelegramTextParts,hasBotMention,inspectTelegramAccount,isBinaryContent,isNumericTelegramChatId,isNumericTelegramSenderUserId,isNumericTelegramUserId,isTelegramExecApprovalApprover,isTelegramExecApprovalAuthorizedSender,isTelegramExecApprovalClientEnabled,isTelegramExecApprovalHandlerConfigured,isTelegramExecApprovalTargetRecipient,isTelegramInlineButtonsEnabled,listEnabledTelegramAccounts,listTelegramAccountIds,listTelegramDirectoryGroupsFromConfig,listTelegramDirectoryPeersFromConfig,looksLikeTelegramTargetId,lookupTelegramChatId,markdownToTelegramChunks,markdownToTelegramHtml,markdownToTelegramHtmlChunks,mergeTelegramAccountConfig,normalizeForwardedContext,normalizeTelegramAllowFromEntry,normalizeTelegramChatId,normalizeTelegramCommandDescription,normalizeTelegramCommandName,normalizeTelegramLookupTarget,normalizeTelegramMessagingTarget,parseStrictInteger as normalizeTelegramReplyToMessageId,parseStrictInteger as resolveTelegramReplyId,parseModelCallbackData,parseTelegramReplyToMessageId,parseTelegramTarget,parseTelegramThreadId,parseTelegramTopicConversation,probeTelegram,readTelegramUpdateOffset,resolveDefaultTelegramAccountId,resolveModelSelection,resolveTelegramAccount,resolveTelegramAccountConfig,resolveTelegramAutoThreadId,resolveTelegramChatLookupFetch,resolveTelegramCustomCommands,resolveTelegramDirectPeerId,resolveTelegramExecApprovalConfig,resolveTelegramExecApprovalTarget,resolveTelegramForumFlag,resolveTelegramForumThreadId,resolveTelegramGroupAllowFromContext,resolveTelegramGroupRequireMention,resolveTelegramGroupToolPolicy,resolveTelegramInlineButtonsConfigScope,resolveTelegramInlineButtonsScope,resolveTelegramInlineButtonsScopeFromCapabilities,resolveTelegramMediaRuntimeOptions,resolveTelegramPollActionGateState,resolveTelegramReactionLevel,resolveTelegramPreviewStreamMode as resolveTelegramStreamMode,resolveTelegramTargetChatType,resolveTelegramThreadSpec,searchStickers,sendTelegramPayloadMessages,shouldHandleTelegramExecApprovalRequest,shouldInjectTelegramExecApprovalButtons,shouldSuppressLocalTelegramExecApprovalPrompt,shouldSuppressTelegramExecApprovalForwardingFallback,splitTelegramHtmlChunks,stripTelegramInternalPrefixes,telegramOutbound,telegramPlugin,telegramSetupPlugin,withResolvedTelegramForumFlag,writeTelegramUpdateOffset};