Skip to content

getTelegramChatId

PQSafe AgentPay API Reference v0.1.0


PQSafe AgentPay API Reference / getTelegramChatId

Function: getTelegramChatId()

getTelegramChatId(): Promise<number | null>

Defined in: pqsafe/agent-pay/src/approval.ts:964

Get your Telegram chat ID by messaging your bot and calling this. Run: TELEGRAM_BOT_TOKEN=… node -e “require(’./dist/approval.js’).getTelegramChatId().then(console.log)“

Returns

Promise<number | null>