pyronear / pyro-api

Alert Management API for wildfire prevention, detection & monitoring. Built with FastAPI & PostgreSQL
Apache License 2.0
21 stars 9 forks source link

feat: send alert image with telegram message, if requested #279

Open blenzi opened 1 year ago

blenzi commented 1 year ago

This PR adds the possibility to send the alert image together with a telegram message, if requested

ghost commented 1 year ago

Nice of you to open a PR :pray: When you're ready and want to get it reviewed, post a comment in this Pull Request with this message: /quack review

codecov[bot] commented 1 year ago

Codecov Report

Attention: Patch coverage is 92.59259% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 94.31%. Comparing base (767be30) to head (ecb101a).

Files Patch % Lines
src/app/api/endpoints/media.py 33.33% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #279 +/- ## ========================================== - Coverage 94.54% 94.31% -0.23% ========================================== Files 63 66 +3 Lines 1594 1690 +96 ========================================== + Hits 1507 1594 +87 - Misses 87 96 +9 ``` | [Flag](https://app.codecov.io/gh/pyronear/pyro-api/pull/279/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyronear) | Coverage Δ | | |---|---|---| | [client](https://app.codecov.io/gh/pyronear/pyro-api/pull/279/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyronear) | `90.58% <ø> (?)` | | | [unittests](https://app.codecov.io/gh/pyronear/pyro-api/pull/279/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyronear) | `94.51% <92.59%> (-0.03%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pyronear#carryforward-flags-in-the-pull-request-comment) to find out more.

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