tg-auth-bot

command module
v0.0.0-...-5980c76 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2025 License: MIT Imports: 8 Imported by: 0

README

tg-auth-bot

Steps to Run the Bot Dev Mode

Step 1: Configure Ngrok

Run the following command to expose port 8080 to the internet using Ngrok:

ngrok http 8080

Copy the https URL generated by Ngrok. This will be used as the NGROK_URL.

Step 2: Create the .env File

Create a .env file in the root directory of the project and populate it with the following environment variables:

TELEGRAM_TOKEN=<TOKEN_YOUR_TELEGRAM_BOT>
INFURA_KEY=<YOUR_KEY_PROVIDER_INFURA>
NGROK_URL=<YOUR_PUBLIC_NGROK_URL>

Replace the values with your actual Telegram Token, Infura Key, and the Ngrok URL you copied earlier.

Step 3: Install Dependencies

Use the go mod commands to download and sync the required dependencies:

go mod tidy

Step 4 Run the Bot

Run the bot using the following command:

go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
bot

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL