Add information about webhooks to README.md

This commit is contained in:
Temirkhan Myrzamadi 2020-03-31 01:04:05 +06:00 committed by GitHub
parent 51129f5d0f
commit 342bb72c4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -282,6 +282,9 @@ The second one produces very strange compiler messages because of the `#[tokio::
### Why Rust?
Most programming languages have their own implementations of Telegram bots frameworks, so why not Rust? We think Rust provides enough good ecosystem and the language itself to be suitable for writing bots.
### Can I use webhooks?
teloxide itself doesn't provide special API for working with webhooks due to the nature of webhooks with lots of subtle settings. Instead, you setup your webhook by yourself, as shown in [webhook_ping_pong_bot](examples/webhook_ping_pong_bot/src/main.rs). Also, see [Marvin's Marvellous Guide to All Things Webhook](https://core.telegram.org/bots/webhooks).
## Community bots
Feel free to push your own bot into our collection: https://github.com/teloxide/community-bots. Later you will be able to play with them right in our official chat: https://t.me/teloxide.