Skip to content

Commit

Permalink
fix(lint): lll and govet issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-brito committed Aug 10, 2021
1 parent 6a76084 commit f646b0f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pkg/notification/telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type telegram struct {

type Option func(telegram *telegram)

func NewTelegram(orderController *order.Controller, settings model.Settings, options ...Option) (service.Telegram, error) {
func NewTelegram(controller *order.Controller, settings model.Settings, options ...Option) (service.Telegram, error) {
menu := &tb.ReplyMarkup{ResizeReplyKeyboard: true}
poller := &tb.LongPoller{Timeout: 10 * time.Second}

Expand Down Expand Up @@ -62,14 +62,14 @@ func NewTelegram(orderController *order.Controller, settings model.Settings, opt
)

err = client.SetCommands([]tb.Command{
{"/help", "Display help instructions"},
{"/stop", "Stop buy and sell coins"},
{"/start", "Start buy and sell coins"},
{"/status", "Check bot status"},
{"/balance", "Wallet balance"},
{"/profit", "Summary of last trade results"},
{"/buy", "open a buy order"},
{"/sell", "open a sell order"},
{Text: "/help", Description: "Display help instructions"},
{Text: "/stop", Description: "Stop buy and sell coins"},
{Text: "/start", Description: "Start buy and sell coins"},
{Text: "/status", Description: "Check bot status"},
{Text: "/balance", Description: "Wallet balance"},
{Text: "/profit", Description: "Summary of last trade results"},
{Text: "/buy", Description: "open a buy order"},
{Text: "/sell", Description: "open a sell order"},
})
if err != nil {
return nil, err
Expand All @@ -81,7 +81,7 @@ func NewTelegram(orderController *order.Controller, settings model.Settings, opt
)

bot := &telegram{
orderController: orderController,
orderController: controller,
client: client,
settings: settings,
defaultMenu: menu,
Expand Down

0 comments on commit f646b0f

Please sign in to comment.