Asked to write the readme files

This commit is contained in:
BroncoTc
2015-05-30 02:22:23 +08:00
parent 7431a44281
commit 509d2e55a5
2 changed files with 9 additions and 5 deletions
+4 -3
View File
@@ -1,11 +1,10 @@
DennyDai/D-Bot
==============================
a php bot
A PHP Chat Bot
Requirements
------------
- a running [telegram-cli](https://github.com/vysheng/tg/) listening on a unix-socket (`-S`) or a port (`-P`). Needs to be configured already (phone-number, etc.).
- A running [telegram-cli](https://github.com/vysheng/tg/) listening on a unix-socket (`-S`) or a port (`-P`). Needs to be configured (phone-number, etc.) before this progarm runs.
- php >= 5.3.0
Usage
@@ -23,3 +22,5 @@ Finally,
chmod 0777 /tmp/tg.sck
If you never started telegram-cli before, you need to start it first in normal mode, so you can type in your telegram-phone-number and register it, if needed (`./bin/telegram-cli`).
If you are using this program under root permission and the telegram-cli failed to switch to 'telegramd', you can use "-U root" as one of the arguments.