- $ git clone --recursive https://github.com/voiser/telegram-for-robots
- follow the instructions found in: https://github.com/vysheng/tg
- please be aware of this bug: vysheng/tg#440
- install luarocks
- $ luaricks install luasocket
- $ ./login.sh
- Enter your phone number (+xx.....) and the received code.
- The application will close
- $ ./launch.sh
- connect to port 4001 to receive all incoming messages in JSON format.
- connect to port 4002 to send commands (send text, video, etc)
Refer to https://github.com/vysheng/tg for a list of the available commands (or use the help command)
There's a simple example bot written in several languages:
- $ cd python3
- $ python3 test.py
- $ cd ruby
- $ ruby test.rb
- $ cd groovy
- $ groovy test.groovy
Feel free to translate the example to other language (and don't forget to send me the pull request)