diff --git a/broker/action.go b/broker/action.go index 1a2ceb9..7247ca8 100644 --- a/broker/action.go +++ b/broker/action.go @@ -14,5 +14,8 @@ func executeClientCommand(action tg.ClientCommand, client net.Conn) { case tg.CmdGetFile: data := *(action.FileRequestData) api.GetFile(data, client, *action.Callback) + case tg.CmdSendPhoto: + data := *(action.PhotoData) + api.SendPhoto(data) } }