Skip to content

dynamic-labs/tg-bot-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Wallet Bot

A minimalist Telegram bot for creating and managing crypto wallets using Dynamic's server-side wallet infrastructure and Supabase for persistence.

Features

  • Create an EVM compatible wallet (/wallet command)
  • Send crypto to other addresses (/send command)
  • Sign messages with your wallet (/sign command)
  • Built with Dynamic's server-side wallet infrastructure
  • Persistence with Supabase

Setup

Prerequisites

  • Bun installed
  • Telegram Bot created via BotFather
  • Dynamic account and environment
  • Supabase project with a table structure:
    CREATE TABLE wallets (
      id SERIAL PRIMARY KEY,
      tg_id BIGINT NOT NULL,
      walletAddress TEXT NOT NULL,
      walletID TEXT NOT NULL,
      created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW()
    );

Installation

  1. Clone the repository
  2. Install dependencies:
    bun install

Create an .env file based on .env.example.

Running the Bot

bun run start

Or for development with auto-reload:

bun run dev

Usage

  • /wallet - Create a wallet or view your existing wallet
  • /send <address> <amount> - Send crypto to another address
  • /sign <message> - Sign a message with your wallet

Development

This project uses:

  • Grammy for Telegram bot framework
  • Dynamic for wallet infrastructure
  • Viem for blockchain interactions
  • Supabase for database
  • Bun for JavaScript/TypeScript runtime

About

A Telegram bot using Dynamic's server wallets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •