aboutsummaryrefslogtreecommitdiff
path: root/telegram
diff options
context:
space:
mode:
Diffstat (limited to 'telegram')
-rw-r--r--telegram/commands.go2
-rw-r--r--telegram/handlers.go2
-rw-r--r--telegram/utils.go12
3 files changed, 8 insertions, 8 deletions
diff --git a/telegram/commands.go b/telegram/commands.go
index f36108a..5e16a6a 100644
--- a/telegram/commands.go
+++ b/telegram/commands.go
@@ -652,7 +652,7 @@ func (c *Client) ProcessChatCommand(chatID int64, cmdline string) (string, bool)
keyValueString("Chat title", info.Fn),
keyValueString("Photo", link),
keyValueString("Username", info.Nickname),
- keyValueString("Full name", info.Given + " " + info.Family),
+ keyValueString("Full name", info.Given+" "+info.Family),
keyValueString("Phone number", info.Tel),
}
return strings.Join(entries, "\n"), true
diff --git a/telegram/handlers.go b/telegram/handlers.go
index 6de59e7..57402ab 100644
--- a/telegram/handlers.go
+++ b/telegram/handlers.go
@@ -274,7 +274,7 @@ func (c *Client) updateAuthorizationState(update *client.UpdateAuthorizationStat
func (c *Client) updateMessageSendSucceeded(update *client.UpdateMessageSendSucceeded) {
log.Debugf("replace message %v with %v", update.OldMessageId, update.Message.Id)
if err := gateway.IdsDB.ReplaceTgId(c.Session.Login, c.jid, update.Message.ChatId, update.OldMessageId, update.Message.Id); err != nil {
- log.Error("failed to replace %v with %v: %v", update.OldMessageId, update.Message.Id, err.Error())
+ log.Errorf("failed to replace %v with %v: %v", update.OldMessageId, update.Message.Id, err.Error())
}
file, _ := c.contentToFile(update.Message.Content)
diff --git a/telegram/utils.go b/telegram/utils.go
index a4a2bd4..58f7712 100644
--- a/telegram/utils.go
+++ b/telegram/utils.go
@@ -25,13 +25,13 @@ import (
)
type VCardInfo struct {
- Fn string
- Photo *client.File
+ Fn string
+ Photo *client.File
Nickname string
- Given string
- Family string
- Tel string
- Info string
+ Given string
+ Family string
+ Tel string
+ Info string
}
var errOffline = errors.New("TDlib instance is offline")