Skip to content

Webhook example. #238

@ccqpein

Description

@ccqpein

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions