style: lint cleanup

This commit is contained in:
Peter Steinberger
2026-01-08 08:40:02 +01:00
parent 9a11325cc9
commit 1b2957d050
6 changed files with 35 additions and 31 deletions

View File

@@ -115,7 +115,8 @@ export async function sendMessageTelegram(
const fetchImpl = resolveTelegramFetch();
const api =
opts.api ??
new Bot(token, fetchImpl ? { client: { fetch: fetchImpl } } : undefined).api;
new Bot(token, fetchImpl ? { client: { fetch: fetchImpl } } : undefined)
.api;
const mediaUrl = opts.mediaUrl?.trim();
// Build optional params for forum topics and reply threading.
@@ -272,7 +273,8 @@ export async function reactMessageTelegram(
const fetchImpl = resolveTelegramFetch();
const api =
opts.api ??
new Bot(token, fetchImpl ? { client: { fetch: fetchImpl } } : undefined).api;
new Bot(token, fetchImpl ? { client: { fetch: fetchImpl } } : undefined)
.api;
const request = createTelegramRetryRunner({
retry: opts.retry,
configRetry: account.config.retry,