Skip to content

ErVinTract/template-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram bot example

This is trivial bot example. Each part can be replaced keeping the overall structure the same :)

How to start

  1. Copy repository in your directory

  2. Update pip and setuptools packages

pip install -U setuptools pip 
  1. Install all the libraries necessary for the bot to work.
pip install -r requirements.txt
  1. Create and fill bot.ini file (example)

  2. Start bot to check

python3 -m bot
  1. Edit systemd service file and copy it to a proper location.

How to use i18n

  1. Go to /tgbot/services/locales/

  2. 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 }
Help in code:
- tg: @prostmich in i18n 
- @tishka17 for the basiс code

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors