Skip to main content

Telegram Setup Guide

note

This is a community-contributed guide. This guide is based on certain Obico community members' own setup and hence may not work for you.

My Base: Fresh Install Ubuntu 20.04.

You need to open a terminal with your device. I am doing this via SSH (I'm using Putty on windows).

  1. Install npm
sudo apt install npm

install nmp

  1. Install looptools
sudo apt install looptools

loop

  1. Install localtunnel and run it
npx localtunnel --port 3334

INSTALL tunnel RUNNING loop

  1. Open telegram (I`m using windows telegram app) and find botfather

BOT FATHER

  1. Start conversation and open a menu
/start

botcommands

  1. Create your own bot and give it a name
/newbot

bot name

  1. Get BOT ID and TOKEN

token

  1. Set domain which was given by tunnel in Step 3
/setdomain

set domain

  1. Add TOKEN with ID in docker-compose.yml

    • Open the file:

      • Option 1: Edit docker-compose.yml through terminal
        cd TheSpaghettiDetective
        sudo nano docker-compose.yml
        find docker config
      • Option 2: edit it directly
        • Find the folder called TheSpaghettiDetective in your home directory
        • Open it. Inside you should find a file called docker-compose.yml. Open it.
    • Edit the file to include your ID config

  1. Reboot Docker
cd TheSpaghettiDetective
sudo docker compose down
sudo docker compose up -d

reboot

  1. Go on your Obico Server VIA link connected to Telegram.

Go in preferences and connect to Telegram.

linking

  1. Push Test button after

RESULTS

Results