[broker] ALL ABOARD THE USS HAMCHA IS A FUCKING IDIOT
This commit is contained in:
parent
5e232b5012
commit
fafc24c3d0
1 changed files with 3 additions and 0 deletions
|
@ -14,5 +14,8 @@ func executeClientCommand(action tg.ClientCommand, client net.Conn) {
|
||||||
case tg.CmdGetFile:
|
case tg.CmdGetFile:
|
||||||
data := *(action.FileRequestData)
|
data := *(action.FileRequestData)
|
||||||
api.GetFile(data, client, *action.Callback)
|
api.GetFile(data, client, *action.Callback)
|
||||||
|
case tg.CmdSendPhoto:
|
||||||
|
data := *(action.PhotoData)
|
||||||
|
api.SendPhoto(data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue