Telegram Message Run Processor will allow you to send messages to a channel or group through a bot with light-markdown format.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
-
Install Docker on your machine, here is the link to Docker installation page (For Windows: Install Docker toolbox)
-
Install Git
-
To check that you are able to execute the code, you should be able to view a valid output from this command (run it on terminal):
docker run hello-world
-
Create a bot with instructions from Telegram API Bot and note down the
key
, you will need it for theconfig.php
file. Also create a group or channel and add the bot as an admin. In order to obtain thechannel_id
for theconfig.php
file, follow these instructions.
-
Git clone this repository to be able to work with the files included, and move to the directory on your system.
-
config.php
must be created before executing the script. There is aconfig_template.php
to check possible values. -
The script expect the file
message.md
to exists in the root path. Telegram API does not support full markdown, but we could use different aspects of it:*bold text* _italic text_ [inline URL](http://www.example.com/) [inline mention of a user](tg://user?id=123456789) `inline fixed-width code` ```block_language pre-formatted fixed-width code block ```
-
config.php
file is ready to work with two envs, but you could use only one, just be sure to setup it correctly within index.php. -
Execute command:
docker build -t telegram-mrp . && docker run -it --rm telegram-mrp
TODO
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Andrés Velasco - Software Engineer
See also the list of contributors who participated in this project.
GPL 3.0