This repository is a Golang server designed to validate Telegram Mini App initData and handle the storage and retrieval of files with Pinata using the Files API.
- Telegram Mini App Validation: Validates
initDatato ensure secure interactions with Telegram users. - File Storage with Pinata: Seamlessly upload and retrieve files using Pinata's Files API.
- Secure Configuration: Manage sensitive data through environment variables.
- Go 1.18 or higher
- Git
- Pinata Account for file storage
- Telegram Bot created via BotFather
-
Clone the repository
git clone https://github.com/paigexx/pinniebox_backend.git cd pinniebox_backend -
Install dependencies
Ensure you are in the project directory and run:
go mod download
Configuration is managed via environment variables. You can create a .env file in the project root:
TELEGRAM_BOT_TOKEN=your_telegram_bot_token
PINATA_JWT=your_pinata_jwt
PINATA_GATEWAY=your_pinata_gateway
WEB_APP_URL=your_web_app_urlgo run main.go