This is trivial bot example. Each part can be replaced keeping the overall structure the same :)
-
Copy repository in your directory
-
Update
pipandsetuptoolspackages
pip install -U setuptools pip - Install all the libraries necessary for the bot to work.
pip install -r requirements.txt-
Create and fill
bot.inifile (example) -
Start bot to check
python3 -m bot- Edit systemd service file and copy it to a proper location.
-
Go to /tgbot/services/locales/
-
Edit text's in *.ftl Example:
welcome-text = Hello, { $user }
Where are you?
How are you?
What time is it?
other-text = Description of this product:
{ $description }- tg: @prostmich in i18n
- @tishka17 for the basiс code