aboutsummaryrefslogtreecommitdiff
path: root/telegram/client.go
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2019-12-01 16:13:45 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2019-12-01 16:13:45 +0300
commit9c25d4ad8f2ccfa156a8cfc4c0d4d7dc35bdd95c (patch)
tree21d5fdd7de25452c888eac582d3c320971803703 /telegram/client.go
parent97dfd1cc00d619008eaf77f19c25c0928be758dc (diff)
Handle updates of newmessage
Diffstat (limited to 'telegram/client.go')
-rw-r--r--telegram/client.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/telegram/client.go b/telegram/client.go
index e8643ce..a7fe332 100644
--- a/telegram/client.go
+++ b/telegram/client.go
@@ -53,6 +53,7 @@ type Client struct {
xmpp *xmpp.Component
jid string
Session *persistence.Session
+ content *config.TelegramContentConfig
locks clientLocks
online bool
@@ -101,6 +102,7 @@ func NewClient(conf config.TelegramConfig, jid string, component *xmpp.Component
xmpp: component,
jid: jid,
Session: session,
+ content: &conf.Content,
logVerbosity: logVerbosity,
locks: clientLocks{},
}, nil