Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Mini App Server

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.

Table of Contents

Features

  • Telegram Mini App Validation: Validates initData to 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.

Prerequisites

Installation

  1. Clone the repository

    git clone https://github.com/paigexx/pinniebox_backend.git
    cd pinniebox_backend
  2. Install dependencies

    Ensure you are in the project directory and run:

    go mod download

Configuration

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_url

Running the Server

go run main.go

About

Go server used for a telegram mini-app using Pinata's Files API.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages