Skip to content

Golang Telegram Bot example, Gin Rest api with swagger documentation

License

Notifications You must be signed in to change notification settings

sanzharanarbay/golang_telegrambot_gin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Golang Gin Rest APi with Swagger documentation, and additional test Telegram Bot

  1. go get .
  2. Change telegram bot token from .env file if you have own bot token, if not do not change
  3. Run swag init , to init Swagger configuration (not required)
  4. http://localhost:8083/swagger/index.html , to view Swagger documentation
  5. Run go run main.go, here its REST API
  6. Run go run telegram.go , here run telegram bot
  7. t.me/SanzharAnarbayTestBot , telegramBot Link
  8. If tou want to create you own bot, type @BotFather in telegram, and create new bot and get token

About

Golang Telegram Bot example, Gin Rest api with swagger documentation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published