aboutsummaryrefslogtreecommitdiff
path: root/telegram/utils.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2022-02-08 23:25:58 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2022-02-08 23:25:58 +0300
commitec49d5d4124fec31d605d9242a3c21f183250902 (patch)
tree7a9a80f55101b40ee0f6f6923855f75d46bc9f28 /telegram/utils.go
parentfe7346a530c8ac985f2a4a9edeeecc134f320a2f (diff)
gofmt
Diffstat (limited to 'telegram/utils.go')
-rw-r--r--telegram/utils.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/telegram/utils.go b/telegram/utils.go
index a0e8147..c816c24 100644
--- a/telegram/utils.go
+++ b/telegram/utils.go
@@ -212,7 +212,7 @@ func (c *Client) ProcessStatusUpdate(chatID int64, status string, show string, o
c.cache.SetStatus(chatID, show, status)
- newArgs := []args.V {
+ newArgs := []args.V{
gateway.SPFrom(strconv.FormatInt(chatID, 10)),
gateway.SPShow(show),
gateway.SPStatus(status),
@@ -331,7 +331,7 @@ func (c *Client) formatForward(fwd *client.MessageForwardInfo) string {
if originChat.AuthorSignature != "" {
signature = fmt.Sprintf(" (%s)", originChat.AuthorSignature)
}
- return c.formatContact(originChat.SenderChatId)+signature
+ return c.formatContact(originChat.SenderChatId) + signature
case client.TypeMessageForwardOriginHiddenUser:
originUser := fwd.Origin.(*client.MessageForwardOriginHiddenUser)
return originUser.SenderName
@@ -341,7 +341,7 @@ func (c *Client) formatForward(fwd *client.MessageForwardInfo) string {
if channel.AuthorSignature != "" {
signature = fmt.Sprintf(" (%s)", channel.AuthorSignature)
}
- return c.formatContact(channel.ChatId)+signature
+ return c.formatContact(channel.ChatId) + signature
case client.TypeMessageForwardOriginMessageImport:
originImport := fwd.Origin.(*client.MessageForwardOriginMessageImport)
return originImport.SenderName