Skip to content

Enhancement: define mgs strings to send #6

Description

@flames

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions