mirror of https://github.com/statping/statping
Merge pull request #37 from nils1323/allow-chat-telegram-chat_ids
Allow chat_ids for telegram notificationspull/1081/head
commit
75033f1892
|
@ -282,7 +282,7 @@ export default {
|
|||
this.notifier.form.forEach((f) => {
|
||||
let field = f.field.toLowerCase()
|
||||
let val = this.notifier[field]
|
||||
if (this.isNumeric(val)) {
|
||||
if (this.isNumeric(val) && this.form.method!='telegram') {
|
||||
val = parseInt(val)
|
||||
}
|
||||
this.form[field] = val
|
||||
|
@ -304,7 +304,7 @@ export default {
|
|||
this.notifier.form.forEach((f) => {
|
||||
let field = f.field.toLowerCase()
|
||||
let val = this.notifier[field]
|
||||
if (this.isNumeric(val)) {
|
||||
if (this.isNumeric(val) && this.form.method!='telegram') {
|
||||
val = parseInt(val)
|
||||
}
|
||||
this.form[field] = val
|
||||
|
|
|
@ -52,8 +52,8 @@ var Telegram = &telegram{¬ifications.Notification{
|
|||
}, {
|
||||
Type: "text",
|
||||
Title: "Channel",
|
||||
Placeholder: "@statping_channel",
|
||||
SmallText: "Insert your Telegram Channel including the @ symbol. The bot will need to be an administrator of this channel.",
|
||||
Placeholder: "@statping_channel/-123123512312",
|
||||
SmallText: "Insert your Telegram Channel including the @ symbol. The bot will need to be an administrator of this channel. You can also supply a chat_id.",
|
||||
DbField: "var1",
|
||||
Required: true,
|
||||
}}},
|
||||
|
|
Loading…
Reference in New Issue