Skip to content

Commit

Permalink
Fix build, handle the satori/go.uuid API breaking change
Browse files Browse the repository at this point in the history
This issue is due to an upstream API change in the github.com/satori/go.uuid package, specifically the change for satori/go.uuid#18.
  • Loading branch information
stockmind authored Nov 13, 2018
1 parent 36790d6 commit 7ec4a20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ func processUpdate(update TelegramUpdate) {
var text string
chatId := update.Message.Chat.Id
if strings.HasPrefix(update.Message.Text, "/start") {
id := uuid.NewV4().String()
u, _ := uuid.NewV4()
id := u.String()
invalidateUserToken(chatId)
StorePut(id, StoreObject{User: update.Message.From, ChatId: chatId})
text = "Here is your token you can use to send messages to your Telegram account:\n\n_" + id + "_"
Expand Down

0 comments on commit 7ec4a20

Please sign in to comment.