Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webhook example. #238

Open
ccqpein opened this issue Mar 14, 2021 · 0 comments
Open

Webhook example. #238

ccqpein opened this issue Mar 14, 2021 · 0 comments

Comments

@ccqpein
Copy link

ccqpein commented Mar 14, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant