Skip to content

Telegram Bot with Grammy on Azure Functions (Nammatham Framework)

Notifications You must be signed in to change notification settings

thaitype/grammy-nammatham-v1

Repository files navigation

Grammy Nammatham v1 Starter

Features

Getting Started

  • Create bot at BotFather
  • Create .env file and add BOT_TOKEN to the file
  • Install dependencies
    npm install
  • Use public URL from ngrok or localtunnel to setup webhook
  • Setup webhook
    curl https://api.telegram.org/bot<BOT_TOKEN>/setWebhook?url=<WEBHOOK_URL>
    
  • Start the bot
    npm run dev

Manual

Dev

npm run dev

Build

npm run build

Deploy

npm run build
func azure functionapp publish <functionAppName>

when you deploy to Azure Functions, you need to setup webhook again with the new URL

Documentation

Please read the full documentation in the repo

Author

  • Thada Wangthammang, Software Engineer, Thailand

About

Telegram Bot with Grammy on Azure Functions (Nammatham Framework)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published