🎨 Added some comments and format the code

This commit is contained in:
Maxim Lebedev 2017-11-20 13:37:59 +05:00
parent 483dfe4878
commit 8eb8712c0d
No known key found for this signature in database
GPG Key ID: F8978F46FF0FFA4F
2 changed files with 9 additions and 1 deletions

View File

@ -8,11 +8,18 @@ import (
)
var (
// Simple wariables
tgHookSet, tgHookListen, tgHookServe string
// Variables with types from imports
cfg *config.Config
flagWebhook = flag.Bool("webhook", false, "enable work via webhooks (required valid certificates)")
// Setted variables
flagWebhook = flag.Bool(
"webhook",
false,
"enable work via webhooks (required valid certificates)",
)
)
// init prepare configuration and other things for successful start of main

View File

@ -5,6 +5,7 @@ import (
"github.com/toby3d/go-telegram" // My Telegram bindings
)
// bot is general structure of the bot
var bot *telegram.Bot
// main function is a general function for work of this bot