strconv
This commit is contained in:
parent
2a8fcacfb7
commit
280a267670
4
main.go
4
main.go
@ -112,7 +112,7 @@ func ListenCW(c *tdlib.Client) {
|
||||
return false
|
||||
}
|
||||
|
||||
conn, _ := amqp.Dial("amqp://shoopea:UmDd5g4WRa2MzqOHsG2T@localhost:5672/chatwars/" + ownUserID64)
|
||||
conn, _ := amqp.Dial("amqp://shoopea:UmDd5g4WRa2MzqOHsG2T@localhost:5672/chatwars/" + strconv.FormatInt(ownUserID64, 10))
|
||||
defer conn.Close()
|
||||
|
||||
ch, _ := conn.Channel()
|
||||
@ -144,7 +144,7 @@ func ListenCW(c *tdlib.Client) {
|
||||
MsgText : string(txt),
|
||||
MsgID64 : updateMsg.Message.ID,
|
||||
}
|
||||
if senderUserID == ownUserID64 {
|
||||
if senderUserID == ownUserID32 {
|
||||
m.Direction = Outgoing
|
||||
} else {
|
||||
m.Direction = Incoming
|
||||
|
Loading…
Reference in New Issue
Block a user