1
0
Fork 0
Chat-robot Telegram for parsing homeworks by subject name, grade and number of the week
Go to file
Arsen Mirzaev Tatyano-Muradovich cda2d0bcb9 shuffled 2025-03-08 21:45:11 +07:00
examples/systemd fixed service 2025-03-06 05:51:16 +07:00
mirzaev/parser_from_interneturok/system shuffled 2025-03-08 21:45:11 +07:00
.gitignore Initial commit 2025-02-25 22:34:55 +07:00
LICENSE Initial commit 2025-02-25 22:34:55 +07:00
README.md downloads counter and week selection 2025-03-08 20:02:17 +07:00
composer.json my work is done 2025-03-06 05:31:11 +07:00
install.sh Initial commit 2025-02-25 22:34:55 +07:00

parser_from_interneturok

Chat-robot Telegram for parsing homeworks by subject name, grade and number of the week

Dependencies

  1. PHP 8.4
  2. Composer (php package manager)
  3. MINIMAL (PHP framework)
  4. Zanzara (Telegram framework + ReactPHP)
  5. Baza (binary database)
  6. NGINX (web server) (can be replaced)
  7. SystemD (service manager) (can be replaced)

You can find other dependencies in the file /composer.json

Installation

SystemD (or any alternative you like)

You can copy an example of systemd file from here: /examples/systemd/ parser_from_interneturok-telegram.service

Execute: sudo cp parser_from_interneturok-telegram.service /etc/systemd/system/ parser_from_interneturok-telegram.service && sudo chmod +x /etc/systemd/system/ parser_from_interneturok-telegram.service

before you execute the command think about what it does and whether the paths are specified correctly
the configuration file is very simple and you can remake it for any alternative to SystemD that you like

InternetUrok accounts

Fill in the file: /mirzaev/parser_from_interneturok/system/storage/accounts.csv

Format: "mail password" (separated by 1 space symbol)

mail password
mail password
mail password

Authorized Telegram accounts

Fill in the file: /mirzaev/parser_from_interneturok/system/settings/accounts.php

return [
    1053489457, // Arsen Mirzaev Tatyano-Muradovich @redloser
]

You can get the telegram account identifier by @RawDataBot

Chat-robot Telegram token

Fill in the file: /mirzaev/parser_from_interneturok/system/settings/telegram.php
You can get the chat-robot telegram token by @BotFather