Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Example: echo

How to run

You must create a temporary bot account using @BotFather.

Then, build this example:

wrangler build

Before running the example, you should store your bot token to Cloudflare secrets.

wrangler secret put BOT_TOKEN

You can now run the example.

wrangler dev

You may want to use tunnelling tool such as ngrok to expose your dev webhook server to Telegram.

Visit https://api.telegram.org/bot<your bot token>/setWebhook?url=<your webhook url> to set up the webhook.