telegram-bot icon indicating copy to clipboard operation
telegram-bot copied to clipboard

Webhook example.

Open ccqpein opened this issue 4 years ago • 0 comments

Hi guys, I am playing telegram bot around and find this repo. It is exactly what I need. I noticed there isn't an example of setting webhook on servers with this repo. I think it might be nice if there is a tiny example of how to use this repo with webhook feature.

Thank you.

PS: I write an example and give a PR. I tested it and it works fine on my webhook server.

PPS: I using actix-web 4-beta as my HTTP server, and it uses tokio 1 as its runtime. So the telegram-bot version on cargo (v0.8.0) doesn't work with actix, because it use tokio 0.2. Anyway, the master branch version of telegram-bot (v0.9 I guess?) is totally fine.

ccqpein avatar Mar 14 '21 01:03 ccqpein