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 |
---|