mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
update faq
This commit is contained in:
parent
6996c7ff87
commit
4af32d21eb
1 changed files with 1 additions and 5 deletions
|
@ -319,11 +319,7 @@ A: No, only the bots API.
|
||||||
|
|
||||||
**Q: Can I use webhooks?**
|
**Q: Can I use webhooks?**
|
||||||
|
|
||||||
A: teloxide doesn't provide a special API for working with webhooks due to their nature with lots of subtle settings. Instead, you should setup your webhook by yourself, as shown in [`examples/ngrok_ping_pong_bot`](examples/ngrok_ping_pong.rs) and [`examples/heroku_ping_pong_bot`](examples/heroku_ping_pong.rs).
|
A: You can! Teloxide has a built-in support for webhooks in `dispatching::update_listeners::webhooks` module. See how it's used in [`examples/ngrok_ping_pong_bot`](examples/ngrok_ping_pong.rs) and [`examples/heroku_ping_pong_bot`](examples/heroku_ping_pong.rs)
|
||||||
|
|
||||||
Associated links:
|
|
||||||
- [Marvin's Marvellous Guide to All Things Webhook](https://core.telegram.org/bots/webhooks)
|
|
||||||
- [Using self-signed certificates](https://core.telegram.org/bots/self-signed)
|
|
||||||
|
|
||||||
**Q: Can I handle both callback queries and messages within a single dialogue?**
|
**Q: Can I handle both callback queries and messages within a single dialogue?**
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue