https://github.com/dead-beef/telegram-bot
Markov chain Telegram bot
https://github.com/dead-beef/telegram-bot
chatbot markov-chain telegram-bot
Last synced: 10 months ago
JSON representation
Markov chain Telegram bot
- Host: GitHub
- URL: https://github.com/dead-beef/telegram-bot
- Owner: dead-beef
- License: mit
- Created: 2018-05-07T07:12:06.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-04-29T15:31:23.000Z (about 4 years ago)
- Last Synced: 2025-02-04T16:32:09.384Z (over 1 year ago)
- Topics: chatbot, markov-chain, telegram-bot
- Language: Python
- Size: 162 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
telegram-bot
============
Overview
--------
Requirements
------------
- `Python 3 `__
Installation
------------
.. code:: bash
git clone https://github.com/dead-beef/telegram-bot
cd telegram-bot
pyvenv env
pyvenv --system-site-packages env
source env/bin/activate
pip install -e .[dev]
Testing
-------
.. code:: bash
./test
Usage
-----
::
> python -m bot -h
usage: __main__.py [-h] [-P POLL] [-p PROXY] [-d DATA_DIR]
[-l {critical,error,warning,info,debug}]
TOKEN_OR_FILE
positional arguments:
TOKEN_OR_FILE bot token or token file
optional arguments:
-h, --help show this help message and exit
-P POLL, --poll POLL polling interval in seconds (default: 0.0)
-p PROXY, --proxy PROXY
proxy (default: socks5://127.0.0.1:9050/ (tor))
-d DATA_DIR, --data-dir DATA_DIR
bot data directory (default: ~/.bot)
-l {critical,error,warning,info,debug},
--log-level {critical,error,warning,info,debug}
log level (default: info)
::
> python -m bot.import_json -h
usage: python -m bot.import_json [dst_chat_id]
::
> python -m bot.leave_groups -h
usage: leave_groups.py [-h] [-p PROXY] [-d DATA_DIR] TOKEN_OR_FILE
positional arguments:
TOKEN_OR_FILE bot token or token file
optional arguments:
-h, --help show this help message and exit
-p PROXY, --proxy PROXY
proxy (default: socks5://127.0.0.1:9050/ (tor))
-d DATA_DIR, --data-dir DATA_DIR
bot data directory (default: ~/.bot)
Licenses
--------
- `telegram-bot `__