Tishka17 / aiogram_dialog

GUI framework on top of aiogram
https://aiogram-dialog.readthedocs.io
Apache License 2.0
691 stars 103 forks source link

Support reply into webhook for less api calls #102

Open akarsh1995 opened 2 years ago

akarsh1995 commented 2 years ago

It helps to reduce the api calls hence less overhead.

Check code for reference in aiogram webhook example: https://github.com/aiogram/aiogram/blob/dea94d2574893f4d0e7df358852a543ef9214217/examples/webhook_example.py#L34

More description can be found here: https://github.com/telegram-bot-rb/telegram-bot/issues/59#issue-286285905

Tishka17 commented 2 years ago

It is difficult to implement, because we beed to know if message is updated correctly and resend in case if errors.

akarsh1995 commented 2 years ago

Let's consider it's the developer's call, is it possible to implement it ?

Tishka17 commented 2 years ago

The main difficulty is that we cannot store message id to edit it infuture if we send it in such manner. Probably this will not be implemented