Information:
[EN] Implement a service on your server that synchronizes messages from the server's chat with those from the indicated Telegram channel or group. Fully configurable.
[ES] Implementa a vuestro servidor un servicio que sincroniza los mensajes del chat del servidor con los del canal o grupo de telegram indicado. Totalmente configurable.
Images
(https://www.l2jdevs.org/forum/index.php?action=dlattach;topic=682.0;attach=281)
(https://www.l2jdevs.org/forum/index.php?action=dlattach;topic=682.0;attach=282)
Config:
# ---------------------------------------------------------------------------
# Telegram Bot Service Mod (By L2JDevs Mods Engine)
# ---------------------------------------------------------------------------
# More information -> http://www.l2jdevs.org
# Telegram group -> https://t.me/l2jdevs
# Sign up and join our community!
# ---------------------------------------------------------------------------
# Enabled Telegram Bot:
# Default: False
TelegramBotEnabled = False
# Enabled Telegram Bot log messages:
# Default: True
TelegramBotLogEnable = True
# Enable bot name to hide player names when sending a message:
# Default: False
TelegramBotNameEnable = False
# Telegram Bot default name:
# Default: True
TelegramBotName = L2JDevs
# Specify your Telegram Bot token:
# GUIDE: The token is a unique key that allows interaction with the Telegram API. Follow these steps to get it:
# 1.- Open Telegram and search for the official bot called BotFather.
# 2.- Start a conversation with BotFather and send the command: /start
# 3.- To create a new bot, use the command: /newbot
# 4.- Follow the instructions of Telegram and configure your bot.
# 5.- BotFather will give you an access token, which will look like this: 123456789:ABCDEF123456abcdef1234567890abcdef
# Default: "123456789:ABCDEF123456abcdef1234567890abcdef"
TelegramBotToken = "123456789:ABCDEF123456abcdef1234567890abcdef"
# Specify your Telegram group or channel ID:
# GUIDE: The chat ID is a unique identifier for your group or channel. You can obtain it using the following methods:
# Add your bot to the group where you want to send messages.
# Send any message in the group.
# In a development environment or script, make a call to the Telegram API to read messages: https://api.telegram.org/bot<TOKEN>/getUpdates
# Replace <TOKEN> with your bot’s token.
# Inspect the JSON response to find the chat.id of the group. It will be a negative number if it’s a group.
# Default: -1001234567890
TelegramBotChatId = -1001234567890
# Enabled Telegram Bot sub-group ID, if your group has topics enabled:
# Default: False
TelegramBotChatThreadEnabled = False
# Specify your Telegram sub-group ID:
# GUIDE: If your group has topics enabled, each topic has a unique identifier called Thread ID. Here’s how to get it:
# Post a message in the specific topic you want to use.
# Use the getUpdates function from the API to identify the Thread ID: https://api.telegram.org/bot<TOKEN>/getUpdates
# When sending messages to the group, include both the chat.id and the message_thread_id in your request to target the specific topic:
# See parameters: message_thread_id: 1234
# Default: 0
TelegramBotChatThreadId = 0
# Enabled filter in chat channels:
# Show only messages that appear in the list of specified chat channels.
# Types:
# 0 = ALL (white)
# 1 = SHOUT (!)
# 2 = TELL (")
# 3 = PARTY (#)
# 4 = CLAN (@)
# 5 = GM (//gmchat)
# 6 = PETITION_PLAYER (*)
# 7 = PETITION_GM (*)
# 8 = TRADE (+)
# 9 = ALLIANCE ($)
# 10 = ANNOUNCEMENT
# 11 = BOAT
# 12 = L2FRIEND
# 13 = MSNCHAT
# 14 = PARTYMATCH_ROOM
# 15 = PARTYROOM_COMMANDER (Yellow)
# 16 = PARTYROOM_ALL (Red)
# 17 = HERO_VOICE (&)
# 18 = CRITICAL_ANNOUNCE
# 19 = SCREEN_ANNOUNCE
# 20 = BATTLEFIELD
# 21 = MPCC_ROOM
# Default: [ "5", "8", "10", "17"]
TelegramBotTypeChannel = [ "5", "8", "10", "17"]
Upcoming Features:
• Green ------- Feature that has already been tested and added.
• Orange ----- Feature in development or partially done.
• Red --------- Feature is not yet available.