KnorpelSenf / typegram

TypeScript types for the entire Telegram Bot API
MIT License
122 stars 3 forks source link

The `proximity_alert_triggered` is required for `ProximityAlertTriggered` message #19

Closed esindger closed 3 years ago

esindger commented 3 years ago

Now parameter proximity_alert_triggered is optional.

https://github.com/KnorpelSenf/typegram/blob/master/message.d.ts#L178

Because of this, it is not possible to exclude ProximityAlertTriggeredMessage from the union Message type. It will always be never.

Screenshot 2021-01-23 at 13 16 58
KnorpelSenf commented 3 years ago

Thanks. Will take care of it later today.