mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-09 15:40:27 +00:00
parent
585d1556c1
commit
f8ad877601
@ -79,6 +79,7 @@ type Protocol struct {
|
|||||||
ColorNicks bool // only irc for now
|
ColorNicks bool // only irc for now
|
||||||
Debug bool // general
|
Debug bool // general
|
||||||
DebugLevel int // only for irc now
|
DebugLevel int // only for irc now
|
||||||
|
DisableWebPagePreview bool // telegram
|
||||||
EditSuffix string // mattermost, slack, discord, telegram, gitter
|
EditSuffix string // mattermost, slack, discord, telegram, gitter
|
||||||
EditDisable bool // mattermost, slack, discord, telegram, gitter
|
EditDisable bool // mattermost, slack, discord, telegram, gitter
|
||||||
IconURL string // mattermost, slack
|
IconURL string // mattermost, slack
|
||||||
|
@ -131,6 +131,9 @@ func (b *Btelegram) sendMessage(chatid int64, username, text string) (string, er
|
|||||||
m.Text = username + html.EscapeString(text)
|
m.Text = username + html.EscapeString(text)
|
||||||
m.ParseMode = tgbotapi.ModeHTML
|
m.ParseMode = tgbotapi.ModeHTML
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m.DisableWebPagePreview = b.GetBool("DisableWebPagePreview")
|
||||||
|
|
||||||
res, err := b.c.Send(m)
|
res, err := b.c.Send(m)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
@ -837,6 +837,10 @@ Token="Yourtokenhere"
|
|||||||
#HTMLNick only allows HTML for the nick, the message itself will be html-escaped
|
#HTMLNick only allows HTML for the nick, the message itself will be html-escaped
|
||||||
MessageFormat=""
|
MessageFormat=""
|
||||||
|
|
||||||
|
#OPTIONAL (default false)
|
||||||
|
#Disables link previews for links in messages
|
||||||
|
DisableWebPagePreview=false
|
||||||
|
|
||||||
#If enabled use the "First Name" as username. If this is empty use the Username
|
#If enabled use the "First Name" as username. If this is empty use the Username
|
||||||
#If disabled use the "Username" as username. If this is empty use the First Name
|
#If disabled use the "Username" as username. If this is empty use the First Name
|
||||||
#If all names are empty, username will be "unknown"
|
#If all names are empty, username will be "unknown"
|
||||||
|
Loading…
Reference in New Issue
Block a user