Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: define mgs strings to send #6

Open
flames opened this issue Jul 18, 2024 · 0 comments
Open

Enhancement: define mgs strings to send #6

flames opened this issue Jul 18, 2024 · 0 comments

Comments

@flames
Copy link

flames commented Jul 18, 2024

https://github.com/anhbh310/gotify2telegram/blob/master/plugin.go#L119
p.send_msg_to_telegram(msg.Date + "\n" + msg.Title + "\n\n" + msg.Message)

Please, add the possibility, to define (ENVs) what part of msg to send and to cut to lenght, like...
if 0, don't send at all, if int >0 cut string length to int.
TELEGRAM_MSG_DATE(int)
TELEGRAM_MSG_TITLE(int)
TELEGRAM_MSG_MESSAGE(int)

thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant