A simple telegram bot to collect username list for community events for @NordicWhalesLounge 🐋
-
/join ➡️ The username is stored in a duplicate free array. It must not be a bot.
-
/list ➡️ Returns the users with full detail (admins only).
-
/listUsernames ➡️ Returns the list of usernames (admins only).
Monorepo workspace generated with Nx
Server framework NestJS
Telegram bot framework TelegrafJS (NestJS addon)
MacOS executable built with nexe
The data collected for the user represented by the User
interface.
export interface User {
id: number;
is_bot: boolean;
first_name: string;
last_name?: string | undefined;
username?: string | undefined;
language_code?: string | undefined;
}
Install via npm or execute main
executable file.
- TELEGRAM_BOT_TOKEN ➡️ Valid telegram bot API token
- ADMINS ➡️ The list of the usernames of the admins
(TelegrafJS) NestJS guard crashing server when canActivate is false