Comments (3)
Thank you, looks like everything is fine now.
BTW I`ve also resolved my problem with pretty-Markdown notifications. As I mentioned my error here: #66 (comment) (some hell happening with links after "Source: ...")
I found a solution in the alertmanager config (externalURL with empty string):
config:
global:
route:
group_by: ['namespace','alertname', 'instance', 'severity']
group_wait: 30s
group_interval: 5m
repeat_interval: 12h
receiver: 'telepush'
receivers:
- name: 'telepush'
webhook_configs:
- url: 'http://1.1.X.XXX:XXXX/api/inlets/alertmanager/XXXXXX?disable_markdown=false&disable_link_previews=true'
http_config:
externalURL: ''
This disables "Source:" in notifications text (no need to disable Markdown in Telepush).
from telepush.
Thx) Just updated my telepush and tried again. Looks like I've received new/old error?
Alertmanager:
ts=2023-12-28T23:49:28.953Z caller=dispatch.go:352 level=error component=dispatcher msg="Notify for alerts failed" num_alerts=3 err="telepush/webhook[0]: notify retry canceled due to unrecoverable error after 1 attempts: unexpected status code 400: http://1.1.X.XXX:8080/api/inlets/alertmanager/XXXXXX?disable_markdown=true&disable_link_previews=true: telegram api returned status 400: 'Bad Request: message is too long'\n"
Telepush:
2023/12/28 23:49:28 error: telegram api returned status 400: 'Bad Request: message is too long'
I guess new query options ignores "-truncateMsgs true"?
Telepush deployed locally by:
docker run -it -d \
-p 8080:8080 \
-v telepush_data:/srv/data \
--name telepush \
darkfess/telepush \
-mode poll \
-token xxxxxxxxxxxxxxxxx \
-truncateMsgs true
from telepush.
Sorry, found another little bug in the truncation. Please try if the latest fix works for you (didn't push a new release / new Docker, yet).
from telepush.
Related Issues (20)
- High-entropy tokens. HOT 1
- Make `go install`able
- Idea: whitelist mode HOT 1
- Grafana alerts inlet
- Whitelist not working with group chat_id HOT 1
- Feature Request: Support arm64 architecture HOT 1
- failed to read store from /srv/data/store.gob HOT 3
- Feature: return 404 on /api/inlets/default and /api/messages in current version HOT 1
- Issue: webhook not used HOT 4
- Switch to config-based inlet adapter format
- Idea: Stripe webhook inlet HOT 1
- Support multiple recipients per requests
- Auto-reload inlet configs upon file change HOT 1
- Pass on Telegram API errors to requester by defaut
- Refrain from sending messages to chats that have blocked the bot
- Feature Request: Docker compose example HOT 2
- Telegram API size limitation 4096? HOT 3
- Truncate messages to fit maximum length limitation HOT 6
- Idea: Kubernetes example HOT 1
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 telepush.