generated from mirzaev/pot-php-telegram
Campanula
Receive and send messages through Gammu server and Telegram messenger interface
Preparation
- Ubuntu linux distributive
- Any SIM-modem, for example SIM900
Реклама: ООО "АЛИБАБА.КОМ (РУ)" ИНН: 7703380158 - UART → USB adapter
- Gammu installed and configured
Installation
Download the repository and its dependencies
cd /var/www
git clone https://git.svoboda.works/garden/campanula
cd campanula
composer update
Edit settings files
cd garden/campanula/system/settings
nvim system.php
nvim telegram.php
nvim gammu.php
Test manually launch
cd ../public
php telegram_week.php
The robot will send a message only if you have already started a conversation with it
Write script launch into crontab
cat ../../../../examples/crontab/records.sh
sudo crontab -e
Yahhoooow!!
Latest
Languages
PHP
85.5%
CSS
10.5%
HTML
3.6%
Shell
0.4%