Telepot: Python framework for Telegram Bot API

 #git clone https://github.com/nickoala/telepot


Install the telepot

 # python setup.py install


-- Got some error like 'setup script exited with error in urllib3 setup command'.

 Solved via install updated version of setuptools.

 Find the setuptools from PYPI(https://pypi.python.org/pypi/) and install it.


Install transmission-daemon, transmission-remote

 # yum install transmission-daemon transmission-remote


Install pip for python packages

 https://pip.pypa.io/en/stable/installing/


Install BeautifulSoup for handle HTTP(after installing pip)

 https://www.crummy.com/software/BeautifulSoup/bs4/doc/#problems-after-installation

 # pip install beautifulsoup4


main.py

TOKEN

listening from user

searching torrent link with keyword

show button that indicates results to user

get magnet link that user chose

add and start magnet on transmission


Reference - https://github.com/seungjuchoi/telegram-control-deluge/blob/master/telegram_torrenter.py

'Project > TelegramBOT' 카테고리의 다른 글

Install Telegram CLI on CentOS 7  (0) 2016.10.06

GIT HUB repository - https://github.com/vysheng/tg


Follow the installation guide.


Tool setup


 # yum install libevent-devel openssl-devel readline-devel libconfig-devel lua-devel git

 

 # wget http://www.digip.org/jansson/releases/jansson.tar.gz

 # tar xvzfp jansson.tar.gz

 # ./configure

 # make

 # make install

 # ln -s /usrs/local/libjansson.so.4 /usr/lib64/


Run Telegram CLI


 # bin/telegram-cli -k server.pub


Then enter your phone number to get code and enter the code.


reference link - http://oty580.tistory.com/27

'Project > TelegramBOT' 카테고리의 다른 글

Prepare for telegram bot project  (0) 2016.10.06

+ Recent posts