grammyjs / grammY

The Telegram Bot Framework.
https://grammy.dev
MIT License
2.17k stars 110 forks source link

Update to oak new `request.body` API #547

Closed gabelluardo closed 5 months ago

gabelluardo commented 5 months ago

When I try to use oak on Deno Deploy I have this error message at runtime

immagine

seems like an incompatibility issue with the new API https://github.com/oakserver/oak/issues/634

KnorpelSenf commented 5 months ago

That sounds reasonable. Could you open a pull request to fix it? :)

gabelluardo commented 5 months ago

Yeah, sure, can you give me a hint of what these functions do, so I know how to modify it?

https://github.com/grammyjs/grammY/blob/c79df4a63c2693535f427481995a9be46c03af07/src/convenience/frameworks.ts#L277-L290

KnorpelSenf commented 5 months ago

Absolutely. Those functions make up the interface between grammY and each web framework. They define how to obtain the update object from the Bot API's webhook request, and provide several ways to respond to the webhook request.

Here is the definition of the interface with documentation for every field. Also, you will find numerous examples in the same file, illustrating how to use them.

KnorpelSenf commented 5 months ago

You may also find https://github.com/grammyjs/grammY/blob/main/CONTRIBUTING.md#coding useful