This is a starter pack for Nix friendly Telegram bot on Rust ecosystem provided to you by Xinux Community members.
Please, after bootstrapping, rename / change all
example
ortemplate
keywords in template files.
In your project root:
# Default shell (bash)
nix develop
# If you use zsh
nix develop -c $SHELL
# If it's your first time, terminal will ask you for
# Telegram bot token to set up everything necessary
# and forget about it.
# Nix shell will run bot in background on watch mode.
# However, your terminal prompt may not show, so just
# Press enter and prompt will be back.
# After entering Nix development environment,
# inside the env, you can open your editor, so
# your editor will read all $PATH and environmental
# variables
# Neovim
vim .
# VSCode
code .
# Zed Editor
zed .
In your project root:
# Build in nix environment
nix build
# Execute compiled binary
./result/bin/tempbot
WIP: This one is huge, will take some time to write.
There are bunch of telegram bots that are using this template and are deployed & working: