22 lines
771 B
TypeScript
22 lines
771 B
TypeScript
import {
|
|
getEnabledNotificationConfigs,
|
|
notifyTransaction,
|
|
testTelegramConfig,
|
|
} from './telegram-bot';
|
|
|
|
export { getEnabledNotificationConfigs, testTelegramConfig };
|
|
|
|
export async function notifyTransactionEnhanced(
|
|
...args: Parameters<typeof notifyTransaction>
|
|
) {
|
|
await notifyTransaction(...args);
|
|
}
|
|
|
|
export async function retryFailedNotifications(): Promise<void> {
|
|
// Retrying logic is not yet implemented for the PostgreSQL data source.
|
|
// The SQLite-specific implementation relied on synchronous database access.
|
|
// If this functionality becomes necessary, please implement it using the
|
|
// telegram_notification_history table with pool-based transactions.
|
|
console.warn('[telegram-bot-enhanced] retryFailedNotifications is not implemented.');
|
|
}
|