Added Telegram plugin (#4269)

This commit is contained in:
Matteo Biscosi 2020-10-30 17:27:32 +01:00 committed by GitHub
parent b1d58bc315
commit 5c6367e7bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 261 additions and 0 deletions

View file

@ -0,0 +1,19 @@
--
-- (C) 2020 - ntop.org
--
return {
telegram_token = "Token",
telegram_channel = "Channel Id",
validation = {
invalid_token = "Invalid Telegram Token.",
invalid_channel_name = "Invalid Telegram Channel Name.",
},
telegram_send_error = "Error sending message to Telegram.",
webhook_description = {
token_description = "Instructions:<ul><li>Start a new chat with @BotFather<li>Type and send '/newbot'<li>Give a name to your bot<li>Give a username to your bot<li>Copy here the token the @BotFather gave to you</ul>",
channel_id_description = "Instructions if you want to use the bot in a group:<ul><li>Add to your group the bot you created<li>Add to your group @getidsbot<li>Copy here the id the @getidsbot gave to you</ul>Instructions if you want to use the bot in a chat:<ul><li>Start a new conversation with @getidsbot<li>Copy here the id the @getidsbot gave to you</ul>",
}
}