UNPKG

@shogun-sdk/accounts

Version:

Shogun with Turnkey: configs, encryption, authentication with Telegram/Turnkey OIDC, etc.

25 lines 624 B
import { TelegramUser } from '../types/turnkey.js'; export declare function validateLogin(params: TelegramUser, botToken: string): Promise<{ success: boolean; error: string; user?: undefined; } | { success: boolean; user: { hash: string; id: number; first_name: string; last_name?: string; photo_url?: string; username?: string; is_bot?: boolean; language_code?: string; is_premium?: boolean; }; error?: undefined; } | { success: boolean; user: null; error?: undefined; }>; //# sourceMappingURL=telegram.d.ts.map