go-telegram-bot-template

command module
v0.0.0-...-467111c Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 6 Imported by: 0

README

go-telegram-bot-template

Create a database (in postgresql shell)
CREATE DATABASE gobot;

Set up .env file

API_TOKEN=your tg bot api token to here

#postgresql configs
DBUSER=postgres
DBPASSWORD=db_password
DBPORT=5432
DBNAME=db_name

Set up database environment

   export API_TOKEN=your_tg_bot_token
   export DBUSER=your db user
   export DBPORT=your db port
   export DBNAME=your db name

Run bot

go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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