Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.2 KB

CONTRIBUTING.md

File metadata and controls

35 lines (23 loc) · 1.2 KB

How to Contribute

Getting Started

  1. Talk with @BotFather on telegram.
  2. Create a new bot and generate a Token
  3. Enable /setinline and /setinlinefeedback on @BotFather
  4. Enter your Token in your .env file.

Development

CodeSpaces (Easier & Faster) 🚀

  1. Open the Codespace from the Github Repository. Code -> Codespaces -> Create Codespace
  2. Everything is already setup in the codespace config.
  3. Install recommended extensions (OPTIONAL, but good to have)

Local

  1. Clone this repo
  2. Make sure you have Poetry (if not pip install poetry) it should alreeady be in the codespace
  3. Get into the poetry env with poetry shell

Copy .env.example in a .env file. Fill in your tokens and variables.

Running the bot

  1. Run python bot.py.
  2. CTRL SHIFT F5

Debugging the bot

The app is already perfectly setup for VSCode debuggers

VSCode debuggers works well in this case, you may use it. To further ease debugging experience, you'd set up a debug configuration like the one below. It'll help you reload just by pressing CTRL+SHIFT+F5

ping @panachaud in case you need any help in getting setup