grammyjs / grammY

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

feat: prevent incorrect signal usage #488

Closed KnorpelSenf closed 11 months ago

KnorpelSenf commented 11 months ago

In https://t.me/grammyjs/168114 and so many other times, people who do not use TS (and who do not read docs) use the context shortcuts and other methods incorrectly. This PQ attempt to explain to them how to fix their code.

codecov[bot] commented 11 months ago

Codecov Report

Attention: 25 lines in your changes are missing coverage. Please review.

Comparison is base (fb58202) 46.51% compared to head (e63b5d1) 46.31%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #488 +/- ## ========================================== - Coverage 46.51% 46.31% -0.21% ========================================== Files 19 19 Lines 5615 5640 +25 Branches 226 227 +1 ========================================== Hits 2612 2612 - Misses 3000 3025 +25 Partials 3 3 ``` | [Files](https://app.codecov.io/gh/grammyjs/grammY/pull/488?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=grammyjs) | Coverage Δ | | |---|---|---| | [src/core/client.ts](https://app.codecov.io/gh/grammyjs/grammY/pull/488?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=grammyjs#diff-c3JjL2NvcmUvY2xpZW50LnRz) | `51.62% <0.00%> (-6.80%)` | :arrow_down: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.