package handler import ( tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api" ) func getHelp() (help string) { // TODO separate help variable help = "This is bot tracks your miner stats and calculates unpaid per worker.\n" help += "How to start:\n" help += "1) \"/start\" - it will add you to database\n" help += "2) \"/setwallet \" - it will set wallet for tracking, bot will start to add info about your miner and workers to database\n" help += "3) \"/actual\" - it will send you up to date data about your worker\n" help += "4) \"/lastpayout\" - it will send you last payout data with calculated worker unpaid for that period if avaliable\n" help += "5) \"/stop\" - it will clear all data about you from database\n" help += "Additional commands:\n" help += "\"/rate\" - get actual ETH and BTC rate from ethermine\n" help += "\"/actual \" - get up to date data about any wallet without unpaid per worker\n" return help } func (ah ActionHandler) GetHelpHandler(chatId int64, params []string) []tgbotapi.MessageConfig { if len(params) != 0 { return []tgbotapi.MessageConfig{tgbotapi.NewMessage(chatId, "usage: /help")} } return []tgbotapi.MessageConfig{ tgbotapi.NewMessage(chatId, getHelp())} }