Categorygithub.com/ArtemHvozdov/tg-auth-bot
modulepackage
0.0.0-20250126204540-bc40b73ff022
Repository: https://github.com/artemhvozdov/tg-auth-bot.git
Documentation: pkg.go.dev

# 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

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author