Comments (2)
when I try to run notify after nuclei scan it does not send all notify prompts to telegram randomly sends some of them and does not send others then I have to manually use notify to send those scan results. I have think there is some integration problem with telegram
Try -bulk option
from notify.
Hi,
the issue in my case which is with telegram is like that,
The error will happen whenever there is an underscore(_) in the string.
please take a look at my terminal result
root@my-unbuntu:~# notify -version
__ _ ___
___ ___ / /_(_) _/_ __
/ _ \/ _ \/ __/ / _/ // /
/_//_/\___/\__/_/_/ \_, / v1.0.5
/___/
projectdiscovery.io
[INF] Current Version: 1.0.5
root@my-unbuntu:~# echo 'rr_r'|notify
__ _ ___
___ ___ / /_(_) _/_ __
/ _ \/ _ \/ __/ / _/ // /
/_//_/\___/\__/_/_/ \_, / v1.0.5
/___/
projectdiscovery.io
[INF] Current notify version 1.0.5 (latest)
Using default provider config: /root/.config/notify/provider-config.yaml
rr_r
[ERR] failed to send telegram notification for id: tel : Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 2
root@my-unbuntu:~# echo 'rr_r'|notify -bulk
__ _ ___
___ ___ / /_(_) _/_ __
/ _ \/ _ \/ __/ / _/ // /
/_//_/\___/\__/_/_/ \_, / v1.0.5
/___/
projectdiscovery.io
[INF] Current notify version 1.0.5 (latest)
Using default provider config: /root/.config/notify/provider-config.yaml
rr_r
[ERR] failed to send telegram notification for id: tel : Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 2
root@my-unbuntu:~# echo 'rr\_r'|notify -bulk
__ _ ___
___ ___ / /_(_) _/_ __
/ _ \/ _ \/ __/ / _/ // /
/_//_/\___/\__/_/_/ \_, / v1.0.5
/___/
projectdiscovery.io
[INF] Current notify version 1.0.5 (latest)
Using default provider config: /root/.config/notify/provider-config.yaml
rr\_r
the last one sent it successfully without errors because I escaped the underscore manually, the result that returned in the telegram was this rr_r, so it means it works well.
I'm not a GOLANG expert but I think implementing
something like this may fix the issue
escapedMessage := strings.ReplaceAll(message, "_", "\\_")
msg := utils.FormatMessage(escapedMessage, utils.SelectFormat(CliFormat, pr.TelegramFormat), p.counter)
from notify.
Related Issues (20)
- This is the first time I have used notify and I have a problem.
- SMTP provider does not allow to configure UseStartTLS HOT 1
- GitHub Issue/Reporting Support
- Investigate failing integration tests
- Add update check and self update option
- matrix support HOT 1
- Reading keys from environment variables
- SMTP fails when password contains octothorpe ("#") character HOT 1
- Is there a risk of man-in-the-middle attacks using smtp for notification
- Feature: Gotify support
- File upload support along with message HOT 1
- Add option to parse specific values passed to notify by id
- Discord messages appear as embeds rather than plaintext HOT 1
- Teams Webhook not working HOT 5
- Support dingding
- Provider-config.yaml not available
- update shoutrrr to v0.8+ for telegram message_thread_id support
- [FTL] Could not run notifier: notify works with stdin or file using -data flag HOT 3
- Discord integration sends empty messages HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notify.