Webhooks and run config
You can run bot using webhooks
Start bot using webhook
import { NestGram } from 'nestgram';
import { AppModule } from './app/app.module';
async function bootstrap(): Promise<void> {
const bot = new NestGram(
'TOKEN', // bot token
AppModule, // app module
{ url: 'https://mywebhook.com/' }, // webhook config
{ runType: 'webhook', logging: true }, // bot run config
);
await bot.start();
}
bootstrap();Webhook config
Webhook/polling config
Run config
Option
Type
Default value
Description
Last updated