Telegram Connector Spigot icon

Telegram Connector Spigot -----

Send any command to your console using a telegram bot



Revised and updated version of the Telegram console plugin.

Basically all this plugin does right now - executes the command you send and returns console output (for some commands like "say" or "op" the server executes them but doesn't send any response to the bot).

Warning:
  • Type commands without / , like you do in usual console.
  • For each server you run you will need different bot from BotFather

Installation:
  1. Firstly, contact @BotFather via telegram and get your bot's API token. Write it down. Also remember your bot's username.
    • DO NOT SHARE IT WITH ANYONE.
  2. Download this plugin, save it to 'plugins' folder and run server once. Then stop the server and open config file (plugins/TelegramConnector/config.yml).
  3. Change values token to your bot`s API token
  4. Change value findChatId to true
  5. Start the server
  6. Send /start to your bot and copy the chatID number from the console output
  7. Stop the server
  8. Change value authorizedChatId to your telegram chatID
  9. Change value findChatId to false
  10. Start the server
  11. Done!

Optional, but very recommended part:
  • After setup, go to dialog with BotFather and type /setjoingroups , choose your bot and set it to Disable
  • In dialog with BotFather type /setuserpic to set your bot's avatar
Code (YAML):
#  _______   _                                 _____                            _
# |__   __| | |                               / ____|                          | |
#    | | ___| | ___  __ _ _ __ __ _ _ __ ___ | |     ___  _ __  _ __   ___  ___| |_ ___  _ __
#    | |/ _ \ |/ _ \/ _` | '__/ _` | '_ ` _ \| |    / _ \| '_ \| '_ \ / _ \/ __| __/ _ \| '__|
#    | |  __/ |  __/ (_| | | | (_| | | | | | | |___| (_) | | | | | | |  __/ (__| || (_) | |
#    |_|\___|_|\___|\__, |_|  \__,_|_| |_| |_|\_____\___/|_| |_|_| |_|\___|\___|\__\___/|_|
#                    __/ |
#                   |___/


notificationsBotToken
: ''
# Bot token provided by Botfather

authorizedChatId
: 0
# Your userID (follow the guide on Spigot to understand how to find it)

findChatId
: false
# It allows you to see the userID of the person who is writing to the bot (follow the guide to understand how it works)
Resource Information
Author:
----------
Total Downloads: 401
First Release: Feb 19, 2023
Last Update: Mar 17, 2023
Category: ---------------
All-Time Rating:
3 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings