Teleseed tutorial (part 1): Installation

teleseed-installation-guide

This is the first part of a tutorial: How-to create your own bot using TeleSeed. Teleseed is an advance Group Administration Bot based on yagop telegram-bot licensed under GNU General Public License.

This tutorial is divided in three parts:

It’s very easy, and it will help you managing your groups. The official bot is @teleseed, and you can follow its channel in @teleseedch and read news about the bot. Let’s start!

PART 1: INSTALLATION

Follow this three steps to install the bot:

CREATING A Cloud9 ACCOUNT

STARTING BOT PROJECT

INSTALLING

CREATING A Cloud9 ACCOUNT

  1. Access to the website https://c9.io/web/sign-up/free and complete the boxes as you want.
  2. Then, click on ‘’Go to your dashboard’’.
  3. Remember to verify your account in your email box.

STARTING BOT PROJECT

  1. Now, you will see your dashboard. It will be something like that:installing c9 teleseed
  2. Click on ‘’Create a new workspace’’, and configure it like that:create new workspace teleseed

Workspace Name: ‘your workspace name’

Description: ‘this is optional’

Hosted Workspace: We recommend you to select Provate, but in free accounts, only one workspace can be private

Choose a template: SELECT Custom (Ubuntu)

  1. Click on Create Workspace

INSTALLING BOT

  1. Now, you will see this screen:installing c9 teleseed
  2. Close all windows, so it will easier for you, and you won’t confuse while you’re creating the bot.
  3. Open a new terminal clicking in + button, next to the closed README.md, or using CTRL+ALT+T.new terminal teleseed
  4. Verify that you see this: (‘your username in C9’):~/workspace $.
  5. Now, type this command:

sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev make unzip git redis-server g++ libjansson-dev libpython-dev expat libexpat1-dev

  1. When it finish, type this other command:

git clone https://github.com/SEEDTEAM/TeleSeed.git

It will clone TeleSeed bot to your workspace.

  1. Finally, type this commands, one after one:

cd TeleSeed

chmod +x launch.sh

./launch.sh install

./launch.sh

Explanation:
cd Teleseed will open TeleSeed folder in terminal
chmod +x launch.sh will able you to run bot
./launch.sh install will setup all folders that bot needs and install it
./launch.sh will run the bot

  1. When it finishes, and you had ran ./launch.sh, bot will ask you for your phone number. Remember to include your country prefix (+1, +34, etc).
  2. Now, enter your code that this number had received, and you will have the bot running in your account.

In the next tutorial we will show you how to run the bot in cloud 9.

Geeks Channel
Follow us on Telegram Geeks Channel.

47 Responses

  1. cupcake says:

    After i enter the code, it sayes: Enter Password. :/ what to do?

  2. Militix says:

    Loading plugin onservice
    Loading plugin inrealm
    Loading plugin ingroup
    Loading plugin inpm
    Loading plugin banhammer
    Loading plugin stats
    Loading plugin anti_spam
    Loading plugin owners
    Loading plugin arabic_lock
    Loading plugin set
    Loading plugin get
    Loading plugin broadcast
    Loading plugin download_media
    Loading plugin invite
    Loading plugin all
    Loading plugin leave_ban
    Loading plugin isup.lua
    Error loading plugin isup.lua
    ./bot/seedbot.lua:459: attempt to call a nil value
    user#id90695575
    Not valid: old msg
    [20 Jan] IlluminatiBot »»» x = 9
    telegram-cli: interface.c:3446: print_media: Assertion `0′ failed.
    SIGNAL received
    h./tg/bin/telegram-cli(print_backtrace+0x20)[0x46f800]
    ./tg/bin/telegram-cli(termination_signal_handler+0x64)[0x46f884]
    /lib/x86_64-linux-gnu/libc.so.6(+0x36d40)[0x7f2f8d581d40]
    /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x39)[0x7f2f8d581cc9]
    /lib/x86_64-linux-gnu/libc.so.6(abort+0x148)[0x7f2f8d5850d8]
    /lib/x86_64-linux-gnu/libc.so.6(+0x2fb86)[0x7f2f8d57ab86]
    /lib/x86_64-linux-gnu/libc.so.6(+0x2fc32)[0x7f2f8d57ac32]
    ./tg/bin/telegram-cli(print_media+0x50e)[0x47a90e]
    ./tg/bin/telegram-cli(print_message+0x1fb)[0x47e7cb]
    ./tg/bin/telegram-cli(print_message_gw+0x95)[0x47f385]
    ./tg/bin/telegram-cli[0x4ac97c]
    ./tg/bin/telegram-cli[0x4af03e]
    ./tg/bin/telegram-cli[0x4a02fb]
    ./tg/bin/telegram-cli(tglq_query_result+0x10f)[0x4995df]
    ./tg/bin/telegram-cli[0x49308a]
    ./tg/bin/telegram-cli[0x4b517b]
    /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5(event_base_loop+0x754)[0x7f2f8efd5f24]
    ./tg/bin/telegram-cli(net_loop+0xa4)[0x470d34]
    ./tg/bin/telegram-cli(loop+0x195)[0x472045]
    ./tg/bin/telegram-cli(main+0x2d3)[0x46e0a3]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f2f8d56cec5]
    ./tg/bin/telegram-cli[0x46e1b3]

    Process exited with code: 1

    —————
    Please, help P:

  3. reza says:

    Telegram-cli version 1.3.3, Copyright (C) 2013-2015 Vitaly Valtman
    Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type `show_license’.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show_license’ for details.
    Telegram-cli uses libtgl version 2.0.3
    Telegram-cli includes software developed by the OpenSSL Project
    for use in the OpenSSL Toolkit. (http://www.openssl.org/)
    Telegram-cli uses libpython version 3.5.1
    I: config dir=[/home/ubuntu/.telegram-cli]
    Can’t connect with Redis, install/configure it!
    Redis addr: 127.0.0.1
    Redis port: 6379
    Allowed user: 110626080
    Allowed user: 103649648
    Allowed user: 111020322
    Allowed user: 197246658
    Allowed user: 131681931
    Loading plugin onservice
    Loading plugin inrealm
    Loading plugin ingroup
    Loading plugin inpm
    Loading plugin banhammer
    Loading plugin stats
    Loading plugin anti_spam
    Loading plugin owners
    Loading plugin arabic_lock
    Loading plugin set
    Loading plugin get
    Loading plugin broadcast
    Loading plugin download_media
    Loading plugin invite
    Loading plugin all
    Loading plugin leave_ban
    >
    ………………………………………………………………………………………………………
    what should i do and i am not bot admin i type !plugins and bot says This plugin requires privileged user and how can i create group and bot ansewr some commands likes !google

  4. liltechy says:

    why is it returning permission denied after i use the comman: ./launch.sh install?

  5. med says:

    I got this after first command :

    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package libreadline-dev
    E: Unable to locate package libconfig-dev
    E: Unable to locate package lua5.2
    E: Couldn’t find any package by regex ‘lua5.2’
    E: Unable to locate package liblua5.2-dev
    E: Couldn’t find any package by regex ‘liblua5.2-dev’
    E: Unable to locate package libevent-dev
    E: Unable to locate package libjansson-dev
    E: Unable to locate package expat

    What should I do ?

    • M4STER ANGEL M4STER ANGEL says:

      Try
      sudo apt-get update
      sudo apt-get upgrade

      If it doesn’t fix your eror, what Linux versión are you using?

      • austin says:

        how to see my linux version?

      • austin says:

        after i type sudo apt-get upgrade, it come the following msg:
        Errors were encountered while processing:
        udev
        initramfs-tools
        E: Sub-process /usr/bin/dpkg returned an error code (1)
        how should i do?

  6. Michele says:

    When write
    ./launch.sh install -> I have this error “configure: error: no libevent found”
    “Error. Exiting”
    so
    ./launch.sh -> show the error “tg binary not found”

    What is the problem!?

  7. DB says:

    the bot stop on loading admin plugins

    Loading plugin onservice
    Loading plugin inrealm
    Loading plugin ingroup
    Loading plugin inpm
    Loading plugin banhammer
    Loading plugin stats
    Loading plugin anti_spam
    Loading plugin owners
    Loading plugin arabic_lock
    Loading plugin set
    Loading plugin get
    Loading plugin broadcast
    Loading plugin download_media
    Loading plugin invite
    Loading plugin all
    Loading plugin admin
    >
    >

  8. Oscar says:

    I do all the process corectly but when i but ./launch.sh install it give me and error, how can i solve this?

  9. Daniel says:

    Cuando escritura
    ./launch.sh instalar -> Tengo este error “configure: error: no se encontró libevent”
    “Error. Al salir ”
    por lo
    ./launch.sh -> mostrar el error” tg binario no encontrado ”

    ¿¡Cuál es el problema!?

  10. H3M0 says:

    how can i add pluggin and make it run

  11. Thomas says:

    I have a Problem with Teleseed. I write ./launch.sh install and become this error

    collect2: error: ld returned 1 exit status
    make: *** [bin/telegram-cli] Error 1
    Error. Exiting.

  12. Shalhoubs says:

    I got everything right
    in telegram the bot only responds to /id command in private, nothing else.
    what shall I do now ?

  13. mobin says:

    How can i fix this ?

    make: *** [bin/telegram-cli] Error 1
    Error. Exiting.

  14. Henry says:

    Hey,I Wanted to install teleseed and when it installed i did ./launch.sh but it said: tg binary not found
    Run ./launch.sh install

    What to do?

  15. Nezam says:

    The commands which you wrote fail to work specially the apt-get install list. I managed to cross it but in the install it says

    configure: error: No libconfig found. Try –disable-libconfig

  16. Richard says:

    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Note, selecting ‘liblua5.2-0’ for regex ‘lua5.2’
    Package libreadline-dev is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    Package libpython-dev is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package ‘libreadline-dev’ has no installation candidate
    E: Unable to locate package libconfig-dev
    E: Unable to locate package liblua5.2-dev
    E: Couldn’t find any package by regex ‘liblua5.2-dev’
    E: Unable to locate package libjansson-dev
    E: Package ‘libpython-dev’ has no installation candidate

    • Richard says:

      I did cd
      sudo apt-get update
      sudo apt-get upgrade

      but got the following error

      Errors were encountered while processing:
      udev
      initramfs-tools
      E: Sub-process /usr/bin/dpkg returned an error code (1)

    • Richard says:

      Can’t connect with Redis, install/configure it!
      Redis addr: 127.0.0.1
      Redis port: 6379

  17. arash says:

    root@adib:/home/arash/TeleSeed# ./launch.sh
    rm: cannot remove ‘../.telegram-cli/state’: No such file or directory
    change_user_group: can’t find the user telegramd to switch to
    Telegram-cli version 1.4.1, Copyright (C) 2013-2015 Vitaly Valtman
    Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type `show_license’.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show_license’ for details.
    Telegram-cli uses libtgl version 2.1.0
    Telegram-cli includes software developed by the OpenSSL Project
    for use in the OpenSSL Toolkit. (http://www.openssl.org/)
    I: config dir=[/root/.telegram-cli]
    [/root/.telegram-cli] created
    [/root/.telegram-cli/downloads] created
    *** 1464285944.734689 lua: .///bot/utils.lua:1: module ‘socket.url’ not found:
    no field package.preload[‘socket.url’]
    no file ‘/usr/local/share/lua/5.2/socket/url.lua’
    no file ‘/usr/local/share/lua/5.2/socket/url/init.lua’
    no file ‘/usr/local/lib/lua/5.2/socket/url.lua’
    no file ‘/usr/local/lib/lua/5.2/socket/url/init.lua’
    no file ‘/usr/share/lua/5.2/socket/url.lua’
    no file ‘/usr/share/lua/5.2/socket/url/init.lua’
    no file ‘./socket/url.lua’
    no file ‘.luarocks/share/lua/5.2/socket/url.lua’
    no file ‘.luarocks/share/lua/5.2/socket/url/init.lua’
    no file ‘/usr/local/lib/lua/5.2/socket/url.so’
    no file ‘/usr/lib/x86_64-linux-gnu/lua/5.2/socket/url.so’
    no file ‘/usr/lib/lua/5.2/socket/url.so’
    no file ‘/usr/local/lib/lua/5.2/loadall.so’
    no file ‘./socket/url.so’
    no file ‘.luarocks/lib/lua/5.2/socket/url.so’
    no file ‘/usr/local/lib/lua/5.2/socket.so’
    no file ‘/usr/lib/x86_64-linux-gnu/lua/5.2/socket.so’
    no file ‘/usr/lib/lua/5.2/socket.so’
    no file ‘/usr/local/lib/lua/5.2/loadall.so’
    no file ‘./socket.so’
    no file ‘.luarocks/lib/lua/5.2/socket.so’

    whatsd wrong?

  18. ZOOM says:

    sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev make unzip git redis-server g++ libjansson-dev libpython-dev expat libexpat1-dev
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Note, selecting ‘liblua5.2-0’ for regex ‘lua5.2’
    Package libreadline-dev is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    Package libpython-dev is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package ‘libreadline-dev’ has no installation candidate
    E: Unable to locate package libconfig-dev
    E: Unable to locate package liblua5.2-dev
    E: Couldn’t find any package by regex ‘liblua5.2-dev’
    E: Unable to locate package libjansson-dev
    E: Package ‘libpython-dev’ has no installation candidate

    —–
    What can i do?!

  19. alireza says:

    help me

    sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev make unzip git redis-server g++ libjansson-dev libpython-dev expat libexpat1-dev
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    g++ is already the newest version.
    libconfig-dev is already the newest version.
    liblua5.2-dev is already the newest version.
    libpython-dev is already the newest version.
    libreadline-dev is already the newest version.
    lua5.2 is already the newest version.
    make is already the newest version.
    libjansson-dev is already the newest version.
    redis-server is already the newest version.
    libevent-dev is already the newest version.
    libexpat1-dev is already the newest version.
    libssl-dev is already the newest version.
    unzip is already the newest version.
    expat is already the newest version.
    git is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    2 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Setting up udev (204-5ubuntu20.19) …
    * udev requires hotplug support, not started
    …fail!
    invoke-rc.d: initscript udev, action “restart” failed.
    dpkg: error processing package udev (–configure):
    subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of initramfs-tools:
    initramfs-tools depends on udev (>= 147~-5); however:
    Package udev is not configured yet.

    dpkg: error processing package initramfs-tools (–configure):
    dependency problems – leaving unconfigured
    Errors were encountered while processing:
    udev
    initramfs-tools
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  20. mehrad says:

    hi
    i did all of the configs
    but it says
    tg binary not found
    i even did ./launch.sh install
    but same error what should i do?

  21. arya says:

    Hello
    I made a spam robot.
    But that is more than 200 other members of the group does not work.
    Help me please
    Thanks

  22. gabriel says:

    ihellobrz:~/workspace/TeleSeed (master) $ ./launch.sh install
    Already up-to-date.
    patching file tg/configure.ac
    Reversed (or previously applied) patch detected! Skipping patch.
    2 out of 2 hunks ignored — saving rejects to file tg/configure.ac.rej
    checking for gcc… gcc
    checking whether the C compiler works… yes
    checking for C compiler default output file name… a.out
    checking for suffix of executables…
    checking whether we are cross compiling… no
    checking for suffix of object files… o
    checking whether we are using the GNU C compiler… yes
    checking whether gcc accepts -g… yes
    checking for gcc option to accept ISO C89… none needed
    checking for sqrt in -lm… yes
    checking for library containing clock_gettime… none required
    checking for library containing backtrace… none required
    checking for event_base_new in -levent… no
    configure: error: no libevent found
    Error. Exiting.

  23. Mattia Lobriglio says:

    When I type the first code, it says:

    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Package libpython-dev is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Unable to locate package libreadline-dev
    E: Unable to locate package libconfig-dev
    E: Unable to locate package lua5.2
    E: Couldn’t find any package by regex ‘lua5.2’
    E: Unable to locate package liblua5.2-dev
    E: Couldn’t find any package by regex ‘liblua5.2-dev’
    E: Unable to locate package libevent-dev
    E: Unable to locate package libjansson-dev
    E: Package ‘libpython-dev’ has no installation candidate
    E: Unable to locate package expat

Leave a Reply

Your email address will not be published. Required fields are marked *