feat: show connection state, bot, message counters and last activity in the omp status line
This commit is contained in:
1 parent
60254b288b
commit
ca05b58f38
7 files changed
+554
-269
No files matched your search
@@ -554,6 +554,8 @@ export interface TelegramInboundRouteRuntimeDeps<
|
||||
method: string,
|
||||
body: Record<string, unknown>,
|
||||
) => Promise<TResponse>;
|
||||
/** Called for every message from the paired owner, before it is dispatched. */
|
||||
onAuthorizedMessage?: (ctx: TContext) => void;
|
||||
getCurrentInstanceId?: () => string | undefined;
|
||||
getMessageOwnership?: Updates.TelegramMessageOwnershipLookup;
|
||||
getTargetOwnership?: Updates.TelegramTargetOwnershipLookup;
|
||||
@@ -2086,6 +2088,7 @@ export function createTelegramInboundRouteRuntime<
|
||||
handleAuthorizedTelegramCallbackQuery: callbackHandler,
|
||||
sendTextReply: deps.sendTextReply,
|
||||
handleAuthorizedTelegramMessage: async (message, ctx) => {
|
||||
deps.onAuthorizedMessage?.(ctx);
|
||||
if (typeof message.message_thread_id === "number") {
|
||||
await deps.handleTelegramThreadTargetObserved?.(
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user