grammyjs / tools

A collection of web-based tools to help in the bot development process. [Unmaintained. Succeeded by telegram.tools.]
https://tools.grammy.dev
MIT License
7 stars 6 forks source link

Add allowed_updates support to the webhook utility #7

Closed roziscoding closed 1 year ago

roziscoding commented 1 year ago

image

Live preview: https://grammy-tools-3kcyw21dq-roziscoding.vercel.app/webhook-utility

roziscoding commented 1 year ago

Add a button to reset to default. It should set [] and then check what TG picked via getWebhookInfo

Are you suggesting the button should send setWebhook with allowed_updates: []? If so, I don't think that's a good idea, as the user might not want to actually set the update at that time. I'd rather set it to DEFAULT_UPDATE_TYPES (that I copied from grammyjs/grammy#422 for now)

KnorpelSenf commented 1 year ago

I thought of performing a call to getUpdates, but perhaps resetting to a hard-coded value is fine, too

KnorpelSenf commented 1 year ago

Wait what, why did you close this?

roziscoding commented 1 year ago

Wait what, why did you close this?

I didn't. I tried to resign my commit, messed up the whole history, and github automatically closed this. I opened #8 to continue this tho

KnorpelSenf commented 1 year ago

Oh I see