No description
- TypeScript 64.2%
- Nix 35.8%
| src | ||
| .env.example | ||
| .envrc | ||
| .gitignore | ||
| bot.ts | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| readme.md | ||
Simple Telegram Inline LLM Query Bot
Build and run
nix develop
pnpm i
npx tsx bot.ts
See .env.example for configuration.
Use a custom system prompt from a file with either SYSTEM_PROMPT_FILE or --prompt-file:
SYSTEM_PROMPT_FILE=./system-prompt.txt npx tsx bot.ts
npx tsx bot.ts --prompt-file ./system-prompt.txt
Deploy
Using NixOS flake
# flake.nix
{
inputs = {
telegram-inline-llm-bot = {
url = "github:js0ny/telegram-inline-llm-bot";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}
In your NixOS Configuration:
services.tg-inline-llm-bot = {
enable = true;
apiBase = "https://openrouter.ai/v1";
model = "openai/gpt-5.4";
promptFile = "/etc/secrets/tg-inline-llm-bot-prompt.txt";
envFile = "/etc/secrets/tg-inline-llm-bot.env";
};